aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet
diff options
context:
space:
mode:
authorDevendra Naga <develkernel412222@gmail.com>2012-07-28 23:28:47 -0400
committerDavid S. Miller <davem@davemloft.net>2012-07-30 02:18:30 -0400
commit17a2bf798621ce8579f7563deaf4640f15931d0e (patch)
treeb910b49fd8d2969e043ffed7a316fdc078c8ea35 /drivers/net/ethernet
parentea4b3857861fe147137517da200d04cbbc91ad49 (diff)
seeq: use PTR_RET at init_module of driver
the driver sees wether the dev_seeq pointer is having a error that can be read by using the PTR_ERR, and returns it at error case, other wise 0 at success case. the PTR_RET does the same thing, and use PTR_RET instead of redoing the code of PTR_RET Signed-off-by: Devendra Naga <develkernel412222@gmail.com> Acked-by: David Howells <dhowells@redhat.com> Reviewed-by: Jiri Pirko <jiri@resnulli.us> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r--drivers/net/ethernet/seeq/seeq8005.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/ethernet/seeq/seeq8005.c b/drivers/net/ethernet/seeq/seeq8005.c
index 698edbbfc149..d6e50de71186 100644
--- a/drivers/net/ethernet/seeq/seeq8005.c
+++ b/drivers/net/ethernet/seeq/seeq8005.c
@@ -736,9 +736,7 @@ MODULE_PARM_DESC(irq, "SEEQ 8005 IRQ number");
736int __init init_module(void) 736int __init init_module(void)
737{ 737{
738 dev_seeq = seeq8005_probe(-1); 738 dev_seeq = seeq8005_probe(-1);
739 if (IS_ERR(dev_seeq)) 739 return PTR_RET(dev_seeq);
740 return PTR_ERR(dev_seeq);
741 return 0;
742} 740}
743 741
744void __exit cleanup_module(void) 742void __exit cleanup_module(void)