From: Julia Lawall Date: Mon, 19 May 2014 08:29:29 +0000 (+0200) Subject: brcmsmac: make return of 0 explicit X-Git-Tag: omap-for-v3.16/fixes-against-rc1~36^2~122^2^2~24 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=20e6f7f0437d6e1f2d459d5fc2ed1e242afcee16;p=pandora-kernel.git brcmsmac: make return of 0 explicit Delete unnecessary local variable whose value is always 0 and that hides the fact that the result is always 0. A simplified version of the semantic patch that fixes this problem is as follows: (http://coccinelle.lip6.fr/) // @r exists@ local idexpression ret; expression e; position p; @@ -ret = 0; ... when != ret = e return - ret + 0 ; // Signed-off-by: Julia Lawall [arend@broadcom.com: make brcms_b_detach() a void function] Signed-off-by: Arend van Spriel Signed-off-by: John W. Linville --- Reading git-diff-tree failed