]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
net/ieee80211: adjust error handling
authorJulia Lawall <julia@diku.dk>
Wed, 16 Jul 2008 14:34:54 +0000 (16:34 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 22 Aug 2008 20:29:49 +0000 (16:29 -0400)
commitd92a8e81e097968d8f2bac0581a0a43bff14b8f0
tree2b4000f9b42c846da173b154e85823818fd05927
parent1ff41eb0d9a937957d481d4f058a91230851ae17
net/ieee80211: adjust error handling

Converts a test in error handling code to a sequence of labels.

The semantic match that found the problem is:
(http://www.emn.fr/x-info/coccinelle/)

// <smpl>
@@
expression E,E1,E2;
@@

E = alloc_etherdev(...)
... when != E = E1
if (...) { ... free_netdev(E); ... return ...; }
... when != E = E2
(
  if (...)
   {
   ... when != free_netdev(E);
   return dev; }
|
* if (...)
   {
   ... when != free_netdev(E);
   return ...; }
|
register_netdev(E)
)

// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/ieee80211/ieee80211_module.c