]> git.baikalelectronics.ru Git - kernel.git/commit
net: netcp: ethss: cleanup gbe_probe() and gbe_remove() functions
authorKaricheri, Muralidharan <m-karicheri2@ti.com>
Tue, 28 Jul 2015 22:20:14 +0000 (18:20 -0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 Jul 2015 01:37:41 +0000 (18:37 -0700)
commit45fceb53c543083fe75a7681d0b3e28176182b84
tree5842dc91029bafd91c5c5a9619c2a9c49553f050
parent5d3a5e48929c288340ebb8a34277f06ac8d3dcd0
net: netcp: ethss: cleanup gbe_probe() and gbe_remove() functions

This patch clean up error handle code to use goto label properly. In some
cases, the code unnecessarily use goto instead of just returning the error
code.  Code also make explicit calls to devm_* APIs on error which is
not necessary. In the gbe_remove() also it makes similar calls which is
also unnecessary.

Also fix few checkpatch warnings

Signed-off-by: Murali Karicheri <m-karicheri2@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/netcp_core.c
drivers/net/ethernet/ti/netcp_ethss.c