mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
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 <[email protected]> Acked-by: David Howells <[email protected]> Reviewed-by: Jiri Pirko <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
ea4b385786
commit
17a2bf7986
1 changed files with 1 additions and 3 deletions
|
|
@ -736,9 +736,7 @@ MODULE_PARM_DESC(irq, "SEEQ 8005 IRQ number");
|
|||
int __init init_module(void)
|
||||
{
|
||||
dev_seeq = seeq8005_probe(-1);
|
||||
if (IS_ERR(dev_seeq))
|
||||
return PTR_ERR(dev_seeq);
|
||||
return 0;
|
||||
return PTR_RET(dev_seeq);
|
||||
}
|
||||
|
||||
void __exit cleanup_module(void)
|
||||
|
|
|
|||
Loading…
Reference in a new issue