[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aba420a3be9272236795dbc14380991bbf72c657.camel@perches.com>
Date: Tue, 21 Jan 2020 05:01:23 -0800
From: Joe Perches <joe@...ches.com>
To: David Miller <davem@...emloft.net>, hayeswang@...ltek.com
Cc: netdev@...r.kernel.org, nic_swsd@...ltek.com,
linux-kernel@...r.kernel.org, linux-usb@...r.kernel.org,
pmalani@...omium.org, grundler@...omium.org
Subject: Re: [PATCH net 2/9] r8152: reset flow control patch when linking on
for RTL8153B
On Tue, 2020-01-21 at 13:54 +0100, David Miller wrote:
> From: Hayes Wang <hayeswang@...ltek.com>
> Date: Tue, 21 Jan 2020 20:40:28 +0800
>
> > When linking ON, the patch of flow control has to be reset. This
> > makes sure the patch works normally.
[]
> > diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c
[]
> > @@ -2857,6 +2857,7 @@ static void r8153_set_rx_early_size(struct r8152 *tp)
> >
> > static int rtl8153_enable(struct r8152 *tp)
> > {
> > + u32 ocp_data;
> > if (test_bit(RTL8152_UNPLUG, &tp->flags))
> > return -ENODEV;
> >
>
> Please put an empty line after the local variable declarations.
Local scoping is generally better.
Perhaps declare ocp_data inside the if branch
where it's used.
Powered by blists - more mailing lists