diff options
-rw-r--r-- | drivers/net/e1000/e1000_ethtool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/e1000/e1000_ethtool.c b/drivers/net/e1000/e1000_ethtool.c index 6777887295f5..a094288f0277 100644 --- a/drivers/net/e1000/e1000_ethtool.c +++ b/drivers/net/e1000/e1000_ethtool.c | |||
@@ -742,7 +742,7 @@ err_setup: | |||
742 | uint32_t pat, value; \ | 742 | uint32_t pat, value; \ |
743 | uint32_t test[] = \ | 743 | uint32_t test[] = \ |
744 | {0x5A5A5A5A, 0xA5A5A5A5, 0x00000000, 0xFFFFFFFF}; \ | 744 | {0x5A5A5A5A, 0xA5A5A5A5, 0x00000000, 0xFFFFFFFF}; \ |
745 | for (pat = 0; pat < sizeof(test)/sizeof(test[0]); pat++) { \ | 745 | for (pat = 0; pat < ARRAY_SIZE(test); pat++) { \ |
746 | E1000_WRITE_REG(&adapter->hw, R, (test[pat] & W)); \ | 746 | E1000_WRITE_REG(&adapter->hw, R, (test[pat] & W)); \ |
747 | value = E1000_READ_REG(&adapter->hw, R); \ | 747 | value = E1000_READ_REG(&adapter->hw, R); \ |
748 | if (value != (test[pat] & W & M)) { \ | 748 | if (value != (test[pat] & W & M)) { \ |