summaryrefslogtreecommitdiff
path: root/drivers/staging/wilc1000
diff options
context:
space:
mode:
authorMario J. Rugiero <mrugiero@gmail.com>2015-12-03 16:24:05 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-12-18 22:49:10 (GMT)
commit7cf8e59e54b322a1663a3e2beaab8324240e1801 (patch)
tree968a02ddbaf3ec27481632a4c4e099f40f1e0bda /drivers/staging/wilc1000
parent6b05fcc9c6ec08f4bd53e585afe4ec2f2f5b4ffb (diff)
downloadlinux-7cf8e59e54b322a1663a3e2beaab8324240e1801.tar.xz
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>
Diffstat (limited to 'drivers/staging/wilc1000')
-rw-r--r--drivers/staging/wilc1000/host_interface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c
index 36303c3..d1707f6 100644
--- a/drivers/staging/wilc1000/host_interface.c
+++ b/drivers/staging/wilc1000/host_interface.c
@@ -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;