mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-11 01:53:20 -04:00
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:
committed by
Greg Kroah-Hartman
parent
9edaa5f3c2
commit
c8751ad7d2
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user