aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/wilc1000
diff options
context:
space:
mode:
authorHari Prasath Gujulan Elango <hgujulan@visteon.com>2015-06-10 04:25:37 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-06-10 17:43:38 -0700
commit96baf5a61b14119eca3f5b282700e2560e5bda28 (patch)
tree36fc2ec48c03d738754f8d77d07df5a43314d951 /drivers/staging/wilc1000
parentstaging: wilc1000: remove unused variables (diff)
downloadlinux-dev-96baf5a61b14119eca3f5b282700e2560e5bda28.tar.xz
linux-dev-96baf5a61b14119eca3f5b282700e2560e5bda28.zip
staging: wilc1000: fix build warning related to time_after_eq macro
This patch fixes a build warning related to the use of the time_after_eq macro.Adding a typecast to the second argument suppresses the warning.This warning was created by one my previous patch. Signed-off-by: Hari Prasath Gujulan Elango <hgujulan@visteon.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/wilc1000')
-rw-r--r--drivers/staging/wilc1000/wilc_wfi_cfgoperations.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c b/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c
index 0db7f3dfc352..0441d7b23485 100644
--- a/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c
+++ b/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c
@@ -2252,7 +2252,7 @@ void WILC_WFI_p2p_rx (struct net_device *dev, uint8_t *buff, uint32_t size)
if (ieee80211_is_action(buff[FRAME_TYPE_ID])) {
PRINT_D(GENERIC_DBG, "Rx Action Frame Type: %x %x\n", buff[ACTION_SUBTYPE_ID], buff[P2P_PUB_ACTION_SUBTYPE]);
- if (priv->bCfgScanning == WILC_TRUE && time_after_eq(jiffies, pstrWFIDrv->u64P2p_MgmtTimeout)) {
+ if (priv->bCfgScanning == WILC_TRUE && time_after_eq(jiffies, (unsigned long)pstrWFIDrv->u64P2p_MgmtTimeout)) {
PRINT_D(GENERIC_DBG, "Receiving action frames from wrong channels\n");
return;
}