]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
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)
commit0a171933a4b5d6706b782271ac68462c97c1ac50
tree8bf6670ed564e1331855a1096679887981ee0f15
parentcfd280c91253cc28e4919e349fa7a813b63e71e8
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/)

// <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>
drivers/net/ethernet/nuvoton/w90p910_ether.c