]> Git Repo - linux.git/blobdiff - drivers/net/ethernet/intel/igbvf/vf.c
igbvf: use BIT() macro instead of shifts
[linux.git] / drivers / net / ethernet / intel / igbvf / vf.c
index a13baa90ae20298842e3aa6b5877be0f4ad7fe25..335ba66421458232cdd73e7cf1b6141c95ce48e3 100644 (file)
@@ -266,7 +266,7 @@ static s32 e1000_set_vfta_vf(struct e1000_hw *hw, u16 vid, bool set)
        msgbuf[1] = vid;
        /* Setting the 8 bit field MSG INFO to true indicates "add" */
        if (set)
-               msgbuf[0] |= 1 << E1000_VT_MSGINFO_SHIFT;
+               msgbuf[0] |= BIT(E1000_VT_MSGINFO_SHIFT);
 
        mbx->ops.write_posted(hw, msgbuf, 2);
 
This page took 0.024761 seconds and 4 git commands to generate.