aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/events.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2015-06-23 18:12:29 (GMT)
committerJouni Malinen <j@w1.fi>2015-06-23 18:16:15 (GMT)
commitc1a14ef42f1decf308133a133aa1cd429093fdec (patch)
tree3d29b7f3a6619f576b4e20365e8cb7e133ffd518 /wpa_supplicant/events.c
parentfdc5608c125c21975728df1f526ebe1fd232f48e (diff)
downloadhostap-c1a14ef42f1decf308133a133aa1cd429093fdec.zip
hostap-c1a14ef42f1decf308133a133aa1cd429093fdec.tar.gz
hostap-c1a14ef42f1decf308133a133aa1cd429093fdec.tar.bz2
Do not check unsigned size is less than zero
The variables here are unsigned and as such, cannot have a negative value. Use == 0 instead of <= 0 to make this cleaner. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/events.c')
-rw-r--r--wpa_supplicant/events.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c
index f15a6a4..601ddb3 100644
--- a/wpa_supplicant/events.c
+++ b/wpa_supplicant/events.c
@@ -1685,7 +1685,7 @@ int wpa_supplicant_fast_associate(struct wpa_supplicant *wpa_s)
#else /* CONFIG_NO_SCAN_PROCESSING */
struct os_reltime now;
- if (wpa_s->last_scan_res_used <= 0)
+ if (wpa_s->last_scan_res_used == 0)
return -1;
os_get_reltime(&now);