[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.02.1601031741080.2074@localhost6.localdomain6>
Date: Sun, 3 Jan 2016 17:41:21 +0100 (CET)
From: Julia Lawall <julia.lawall@...6.fr>
To: SF Markus Elfring <elfring@...rs.sourceforge.net>
cc: devel@...verdev.osuosl.org,
Christopher Harrer <charrer@...critech.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Lior Dotan <liodot@...il.com>,
LKML <linux-kernel@...r.kernel.org>,
kernel-janitors@...r.kernel.org,
Julia Lawall <julia.lawall@...6.fr>
Subject: Re: [PATCH] staging-slicoss: Replace variable initialisations by
assignments in slic_if_init()
On Sun, 3 Jan 2016, SF Markus Elfring wrote:
> From: Markus Elfring <elfring@...rs.sourceforge.net>
> Date: Sun, 3 Jan 2016 17:25:59 +0100
>
> Replace explicit initialisation for two local variables at the beginning
> by assignments.
Why?
julia
> Signed-off-by: Markus Elfring <elfring@...rs.sourceforge.net>
> ---
> drivers/staging/slicoss/slicoss.c | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/staging/slicoss/slicoss.c b/drivers/staging/slicoss/slicoss.c
> index b23a2d1..8fdcac8 100644
> --- a/drivers/staging/slicoss/slicoss.c
> +++ b/drivers/staging/slicoss/slicoss.c
> @@ -2301,9 +2301,9 @@ static int slic_adapter_allocresources(struct adapter *adapter,
> */
> static int slic_if_init(struct adapter *adapter, unsigned long *flags)
> {
> - struct sliccard *card = adapter->card;
> + struct sliccard *card;
> struct net_device *dev = adapter->netdev;
> - __iomem struct slic_regs *slic_regs = adapter->slic_regs;
> + __iomem struct slic_regs *slic_regs;
> struct slic_shmem *pshmem;
> int rc;
>
> @@ -2348,6 +2348,7 @@ static int slic_if_init(struct adapter *adapter, unsigned long *flags)
> adapter->queues_initialized = 1;
> }
>
> + slic_regs = adapter->slic_regs;
> slic_reg32_write(&slic_regs->slic_icr, ICR_INT_OFF, FLUSH);
> mdelay(1);
>
> @@ -2374,6 +2375,7 @@ static int slic_if_init(struct adapter *adapter, unsigned long *flags)
> }
>
> adapter->state = ADAPT_UP;
> + card = adapter->card;
> if (!card->loadtimerset) {
> setup_timer(&card->loadtimer, &slic_timer_load_check,
> (ulong)card);
> --
> 2.6.3
>
> --
> To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
> the body of a message to majordomo@...r.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists