Merge tag 'stable/for-linus-3.12-rc0-tag-three' of git://git.kernel.org/pub/scm/linux...
[firefly-linux-kernel-4.4.55.git] / drivers / net / appletalk / cops.c
index cff6f023c03a2c78e9869375f93b00c3201af802..7f2a032c354c2c210af55c23c72f6ec1fcd9b4ea 100644 (file)
@@ -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)