From: Julia Lawall Date: Wed, 16 Jul 2008 14:34:54 +0000 (+0200) Subject: net/ieee80211: adjust error handling X-Git-Tag: v2.6.28-rc1~717^2~468 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d92a8e81e097968d8f2bac0581a0a43bff14b8f0;p=pandora-kernel.git 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/) // @@ 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) ) // Signed-off-by: Julia Lawall Signed-off-by: John W. Linville --- Reading git-diff-tree failed