From: Himangi Saraogi Date: Sat, 21 Jun 2014 15:09:51 +0000 (+0530) Subject: Staging: rtl8192e: adjust error handling X-Git-Tag: omap-for-v3.17/fixes-against-rc2~166^2~1554 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=49d74d7091364bcfdd3b35b1bda913351d543fed;p=pandora-kernel.git Staging: rtl8192e: adjust error handling This patch removes a test in error handling code by adding a return path. The Coccinelle semantic match that found the problem is: // @@ 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: Himangi Saraogi Acked-by: Julia Lawall Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed