net/macb: remove useless calls of devm_free_irq()
authorCyrille Pitchen <cyrille.pitchen@atmel.com>
Mon, 15 Dec 2014 14:13:32 +0000 (15:13 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Dec 2014 16:50:45 +0000 (11:50 -0500)
commitcf250de07cdfb9f1609d62df51a938159c53cecb
tree3a60c9413b5d735d674080c16476c2251ebd82be
parente965be7d17b9c82424cbb079506f0f9a4f41656c
net/macb: remove useless calls of devm_free_irq()

Inside macb_probe(), when devm_request_irq() fails on queue q, there is no need
to call devm_free_irq() on queues 0..q-1 because the managed device resources
are released later when calling free_netdev().

Also removing devm_free_irq() call from macb_remove() for the same reason.

Signed-off-by: Cyrille Pitchen <cyrille.pitchen@atmel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cadence/macb.c