ixgbe: Clear I2C destination location
[deliverable/linux.git] / drivers / net / ethernet / intel / ixgbe / ixgbe_phy.c
index 315f0597fbc021c58cb362bd30bfec9b035b3b48..88ade175185af4e7b4368f061adda2f0eef73d90 100644 (file)
@@ -2026,6 +2026,7 @@ static s32 ixgbe_clock_in_i2c_byte(struct ixgbe_hw *hw, u8 *data)
        s32 i;
        bool bit = false;
 
+       *data = 0;
        for (i = 7; i >= 0; i--) {
                ixgbe_clock_in_i2c_bit(hw, &bit);
                *data |= bit << i;
This page took 0.025888 seconds and 5 git commands to generate.