]> git.baikalelectronics.ru Git - kernel.git/commit
seeq: use PTR_RET at init_module of driver
authorDevendra Naga <develkernel412222@gmail.com>
Sun, 29 Jul 2012 03:28:47 +0000 (03:28 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 Jul 2012 06:18:30 +0000 (23:18 -0700)
commitf56f0732961a2696d9391f7aa759c099f2170f32
treeb910b49fd8d2969e043ffed7a316fdc078c8ea35
parenta3e5f47c8fe6090fbcef26f74996cd46a6d0d04b
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>
drivers/net/ethernet/seeq/seeq8005.c