lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ