Skip to content

Commit c8751ad

Browse files
Leo-Kimgregkh
authored andcommitted
staging: wilc1000: Handle_SetMulticastFilter(): fixes right shifting more than type allows
This patch fixes the warning reported by smatch. - Handle_SetMulticastFilter() warn: right shifting more than type allows That is unnecessary action of boolean type. just assign 0. Signed-off-by: Leo Kim <[email protected]> Signed-off-by: Glen Lee <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 9edaa5f commit c8751ad

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/staging/wilc1000/host_interface.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2711,9 +2711,9 @@ static void Handle_SetMulticastFilter(struct host_if_drv *hif_drv,
27112711

27122712
pu8CurrByte = wid.val;
27132713
*pu8CurrByte++ = (strHostIfSetMulti->enabled & 0xFF);
2714-
*pu8CurrByte++ = ((strHostIfSetMulti->enabled >> 8) & 0xFF);
2715-
*pu8CurrByte++ = ((strHostIfSetMulti->enabled >> 16) & 0xFF);
2716-
*pu8CurrByte++ = ((strHostIfSetMulti->enabled >> 24) & 0xFF);
2714+
*pu8CurrByte++ = 0;
2715+
*pu8CurrByte++ = 0;
2716+
*pu8CurrByte++ = 0;
27172717

27182718
*pu8CurrByte++ = (strHostIfSetMulti->cnt & 0xFF);
27192719
*pu8CurrByte++ = ((strHostIfSetMulti->cnt >> 8) & 0xFF);

0 commit comments

Comments
 (0)