X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=drivers%2Fnet%2Fappletalk%2Fcops.c;h=7f2a032c354c2c210af55c23c72f6ec1fcd9b4ea;hb=d5adf7e2db897f9d4a00be59262875ae5d9574f4;hp=cff6f023c03a2c78e9869375f93b00c3201af802;hpb=e589db7a6a9c8f1557007f2cc765ee28ad7a1edd;p=firefly-linux-kernel-4.4.55.git diff --git a/drivers/net/appletalk/cops.c b/drivers/net/appletalk/cops.c index cff6f023c03a..7f2a032c354c 100644 --- a/drivers/net/appletalk/cops.c +++ b/drivers/net/appletalk/cops.c @@ -996,7 +996,7 @@ static int __init cops_module_init(void) printk(KERN_WARNING "%s: You shouldn't autoprobe with insmod\n", cardname); cops_dev = cops_probe(-1); - return PTR_RET(cops_dev); + return PTR_ERR_OR_ZERO(cops_dev); } static void __exit cops_module_exit(void)