[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20180419.152631.1867604383976940013.davem@davemloft.net>
Date: Thu, 19 Apr 2018 15:26:31 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: raghuramchary.jallipalli@...rochip.com
Cc: netdev@...r.kernel.org, unglinuxdriver@...rochip.com,
woojung.huh@...rochip.com
Subject: Re: [PATCH net-next] lan78xx: Add support to dump lan78xx registers
From: Raghuram Chary J <raghuramchary.jallipalli@...rochip.com>
Date: Wed, 18 Apr 2018 21:27:35 +0530
> + /* Read Device/MAC registers */
> + for (i = 0, j = 0; i < (sizeof(lan78xx_regs) / sizeof(u32)); i++, j++)
> + lan78xx_read_reg(dev, lan78xx_regs[i], &data[j]);
There is no need for two loop variables, both i and j increment over the
same numbers.
Powered by blists - more mailing lists