mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-12-30 02:30:06 -05:00
staging: wilc1000: replace 'ptr > 0' check by 'ptr' check.
This silences a sparse warning about incompatible comparisons, while making the intent of the check a bit clearer. Signed-off-by: Mario J. Rugiero <mrugiero@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
6b05fcc9c6
commit
7cf8e59e54
@@ -2292,7 +2292,7 @@ static void Handle_AddBeacon(struct host_if_drv *hif_drv,
|
||||
*pu8CurrByte++ = ((pstrSetBeaconParam->tail_len >> 16) & 0xFF);
|
||||
*pu8CurrByte++ = ((pstrSetBeaconParam->tail_len >> 24) & 0xFF);
|
||||
|
||||
if (pstrSetBeaconParam->tail > 0)
|
||||
if (pstrSetBeaconParam->tail)
|
||||
memcpy(pu8CurrByte, pstrSetBeaconParam->tail, pstrSetBeaconParam->tail_len);
|
||||
pu8CurrByte += pstrSetBeaconParam->tail_len;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user