]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
DFS: Remove dead assignment
authorJouni Malinen <j@w1.fi>
Wed, 2 Jul 2014 21:51:47 +0000 (00:51 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 2 Jul 2014 21:51:47 +0000 (00:51 +0300)
set_dfs_state() return value is not currently checked anywhere, so
remove the dead assignment to avoid static analyzer complaints.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/ap/dfs.c

index a11b2cf805cd123c0431a2c5cfca31ae24ed7d9c..20419f32133def50852df6f3722c8db74183fe06 100644 (file)
@@ -897,9 +897,8 @@ int hostapd_dfs_radar_detected(struct hostapd_iface *iface, int freq,
                freq, ht_enabled, chan_offset, chan_width, cf1, cf2);
 
        /* mark radar frequency as invalid */
-       res = set_dfs_state(iface, freq, ht_enabled, chan_offset,
-                           chan_width, cf1, cf2,
-                           HOSTAPD_CHAN_DFS_UNAVAILABLE);
+       set_dfs_state(iface, freq, ht_enabled, chan_offset, chan_width,
+                     cf1, cf2, HOSTAPD_CHAN_DFS_UNAVAILABLE);
 
        /* Skip if reported radar event not overlapped our channels */
        res = dfs_are_channels_overlapped(iface, freq, chan_width, cf1, cf2);