Skip to contentSkip to conversation

Fix incompatible type comparison in wilc1000/host_interface.c

PATCH New Mario J. Rugiero 1 participant 1 message Nov 30, 2015 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix incompatible type comparison in wilc1000/host_interface.c

---
 drivers/staging/wilc1000/host_interface.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/wilc1000/host_interface.c +1 -1
index d5b7725..9ce1d22 100644
@@ -2270,7 +2270,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 != NULL)
 		memcpy(pu8CurrByte, pstrSetBeaconParam->tail, pstrSetBeaconParam->tail_len);
 	pu8CurrByte += pstrSetBeaconParam->tail_len;
 
Signature · 1 line
2.6.2