Skip to content

Commit 7cf8e59

Browse files
Oppengregkh
authored andcommitted
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 <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 6b05fcc commit 7cf8e59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/staging/wilc1000/host_interface.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2292,7 +2292,7 @@ static void Handle_AddBeacon(struct host_if_drv *hif_drv,
22922292
*pu8CurrByte++ = ((pstrSetBeaconParam->tail_len >> 16) & 0xFF);
22932293
*pu8CurrByte++ = ((pstrSetBeaconParam->tail_len >> 24) & 0xFF);
22942294

2295-
if (pstrSetBeaconParam->tail > 0)
2295+
if (pstrSetBeaconParam->tail)
22962296
memcpy(pu8CurrByte, pstrSetBeaconParam->tail, pstrSetBeaconParam->tail_len);
22972297
pu8CurrByte += pstrSetBeaconParam->tail_len;
22982298

0 commit comments

Comments
 (0)