From: Julia Lawall Date: Mon, 2 Sep 2013 09:54:21 +0000 (+0200) Subject: drivers:net: delete premature free_irq X-Git-Tag: v3.12-rc1~132^2~30 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0a171933a4b5d6706b782271ac68462c97c1ac50;p=pandora-kernel.git drivers:net: delete premature free_irq Free_irq is not needed if there has been no request_irq. Free_irq is removed from both the probe and remove functions. The correct request_irq and free_irq are found in the open and close functions. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @@ expression e; @@ *e = platform_get_irq(...); ... when != request_irq(e,...) *free_irq(e,...) // Signed-off-by: Julia Lawall Signed-off-by: David S. Miller --- Reading git-diff-tree failed