linux/drivers/net/wireless/ipw2x00
Julia Lawall 7b4e6cfbae drivers/net/wireless/ipw2x00/ipw2100.c: introduce missing initialization
The result of one call to a function is tested, and then at the second call
to the same function, the previous result, and not the current result, is
tested again.

Also changed &bssid to bssid, at the suggestion of Stanislav Yakovlev.

The semantic match that finds the first problem is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@@
expression ret;
identifier f;
statement S1,S2;
@@

*ret = f(...);
if (\(ret != 0\|ret < 0\|ret == NULL\)) S1
... when any
*f(...);
if (\(ret != 0\|ret < 0\|ret == NULL\)) S2
// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2012-08-21 15:01:44 -04:00
..
ipw.h net/wireless: ipw2x00: add supported cipher suites to wiphy initialization 2012-04-12 15:10:48 -04:00
ipw2100.c drivers/net/wireless/ipw2x00/ipw2100.c: introduce missing initialization 2012-08-21 15:01:44 -04:00
ipw2100.h Merge branch 'master' into for-davem 2012-04-12 14:41:59 -04:00
ipw2200.c Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next into for-davem 2012-06-12 14:25:04 -04:00
ipw2200.h net/wireless: ipw2x00: remove unused definitions for regulatory domain 2012-03-12 14:19:37 -04:00
Kconfig
libipw.h net/wireless: ipw2x00: remove unused libipw_measurement_report struct 2012-04-11 16:24:00 -04:00
libipw_geo.c
libipw_module.c drivers/net: Remove alloc_etherdev error messages 2012-01-31 16:20:48 -05:00
libipw_rx.c drivers/net: Convert compare_ether_addr to ether_addr_equal 2012-05-10 23:33:01 -04:00
libipw_tx.c ipw2x00: comment typo fix encryptiong to encryption 2011-09-15 14:20:31 +02:00
libipw_wx.c ipw2x00: remove reset_port functionality 2012-01-04 14:30:46 -05:00
Makefile