ipw2x00: remove unused ->ibss_dfs pointer
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 9 Oct 2014 09:57:42 +0000 (12:57 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 27 Oct 2014 18:16:13 +0000 (14:16 -0400)
commit2aa01652cf85f3e5885b173a2f4c53080046c6e0
tree99f385ebcf1e6dd2e6ced7e32b8bb87b80136b2f
parente9dc51aa2b0fe64d23561544c67db939b71bd32c
ipw2x00: remove unused ->ibss_dfs pointer

The ->ibss_dfs pointer is always allocated with a user controlled
length.  This caused a static checker warning because what if the length
was zero?  In that case, any dereference of ->ibss_dfs would lead to an
Oops.

It turns out that this isn't a problem because the ->ibss_dfs pointer is
never used.  This patch deletes it along with all the related code.  In
particular the entire libipw_network_reset() function can be removed.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ipw2x00/libipw.h
drivers/net/wireless/ipw2x00/libipw_module.c
drivers/net/wireless/ipw2x00/libipw_rx.c