igb: use BIT() macro or unsigned prefix
[cascardo/linux.git] / drivers / net / ethernet / intel / igb / e1000_nvm.c
index e8280d0..3582c5c 100644 (file)
@@ -72,7 +72,7 @@ static void igb_shift_out_eec_bits(struct e1000_hw *hw, u16 data, u16 count)
        u32 eecd = rd32(E1000_EECD);
        u32 mask;
 
-       mask = 0x01 << (count - 1);
+       mask = 1u << (count - 1);
        if (nvm->type == e1000_nvm_eeprom_spi)
                eecd |= E1000_EECD_DO;