]> git.baikalelectronics.ru Git - kernel.git/commit
e1000: clean up the checking logic
authorJean Sacren <sakiwit@gmail.com>
Sat, 19 Sep 2015 11:08:40 +0000 (05:08 -0600)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sun, 13 Dec 2015 07:10:22 +0000 (23:10 -0800)
commitd3177098a08b64fad6f3b73fdfe570541175cbb8
tree4cb2fe09648559aec581bdbf1e17d9142cf85f46
parent43a8157156cec078f4dcb41dd3be749248889a81
e1000: clean up the checking logic

The checking logic needed some clean-up work, so we rewrite it by
checking for break first. With that change in place, we can even move
the second check for goto statement outside of the loop.

As this is merely a cleanup, no functional change is involved. The
questionable 'tmp != 0xFF' is intentionally left alone.

Mark Rustad and Alexander Duyck contributed to this patch.

CC: Mark Rustad <mark.d.rustad@intel.com>
CC: Alex Duyck <aduyck@mirantis.com>
Signed-off-by: Jean Sacren <sakiwit@gmail.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/e1000/e1000_main.c