drivers:net: delete premature free_irq
authorJulia Lawall <Julia.Lawall@lip6.fr>
Mon, 2 Sep 2013 09:54:21 +0000 (11:54 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Sep 2013 17:18:19 +0000 (13:18 -0400)
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/)

// <smpl>
@@
expression e;
@@

*e = platform_get_irq(...);
... when != request_irq(e,...)
*free_irq(e,...)
// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found