On Mon, 29 Sep 2008, Jesse Brandeburg wrote:BTW wouldn't something like if (e1000_validate_nvm_checksum(hw) >= 0 || e1000_validate_nvm_checksum(hw) >= 0) { /* copy the MAC address out of the NVM */ if (e1000e_read_mac_addr(&adapter->hw)) e_err("NVM Read Error reading MAC address\n"); } else { e_err("The NVM Checksum Is Not Valid\n"); e1000e_dump_eeprom(adapter); /* * set MAC address to all zeroes to invalidate and * temporary disable this device for the user. This * blocks regular traffic while still permitting * ethtool ioctls from reaching the hardware as well as * allowing the user to run the interface after * manually setting a hw addr using * `ip link set address` */ memset(hw->mac.addr, 0, netdev->addr_len); } just be much more readable? Having for(;;) loop which always performs three iterations, and having "if" inside that distinguishes two iterations from each other just looks peculiar to my eyes :) Thanks, -- Jiri Kosina SUSE Labs --
| Rafael J. Wysocki | [Bug #10493] mips BCM47XX compile error |
| Ingo Molnar | [patch 02/13] syslets: add syslet.h include file, user API/ABI definitions |
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| Andrea Arcangeli | [PATCH 00 of 11] mmu notifier #v16 |
git: | |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| Linus Torvalds | Re: [GIT]: Networking |
| Mark Lord | Re: [BUG] New Kernel Bugs |
