From c0e46bb7d4aa2c869ddefa8334ef4bcbbf3ab9eb Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Thu, 3 Jul 2014 00:51:47 +0300 Subject: [PATCH] DFS: Remove dead assignment 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 --- src/ap/dfs.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/ap/dfs.c b/src/ap/dfs.c index a11b2cf80..20419f321 100644 --- a/src/ap/dfs.c +++ b/src/ap/dfs.c @@ -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);