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 <leo.kim@atmel.com> Signed-off-by: Glen Lee <glen.lee@atmel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
9edaa5f3c2
commit
c8751ad7d2
1 changed files with 3 additions and 3 deletions
|
@ -2711,9 +2711,9 @@ static void Handle_SetMulticastFilter(struct host_if_drv *hif_drv,
|
|||
|
||||
pu8CurrByte = wid.val;
|
||||
*pu8CurrByte++ = (strHostIfSetMulti->enabled & 0xFF);
|
||||
*pu8CurrByte++ = ((strHostIfSetMulti->enabled >> 8) & 0xFF);
|
||||
*pu8CurrByte++ = ((strHostIfSetMulti->enabled >> 16) & 0xFF);
|
||||
*pu8CurrByte++ = ((strHostIfSetMulti->enabled >> 24) & 0xFF);
|
||||
*pu8CurrByte++ = 0;
|
||||
*pu8CurrByte++ = 0;
|
||||
*pu8CurrByte++ = 0;
|
||||
|
||||
*pu8CurrByte++ = (strHostIfSetMulti->cnt & 0xFF);
|
||||
*pu8CurrByte++ = ((strHostIfSetMulti->cnt >> 8) & 0xFF);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue