On Thu, Sep 17, 2015 at 06:18:15PM +0200, Michal Schmidt wrote:
> On 09/16/2015 11:41 PM, [email protected] wrote:
> > @@ -125,7 +151,20 @@ int __init dev_init(void)
> >             ret = PTR_ERR(class);
> >             pr_err("Could not create device class (err %d)\n", -ret);
> >             unregister_chrdev_region(hfi1_dev, HFI1_NMINORS);
> > +           goto done;
> >     }
> > +   class->devnode = hfi1_devnode;
> > +
> > +   user_class = class_create(THIS_MODULE, class_name_user());
> > +   if (IS_ERR(user_class)) {
> > +           ret = PTR_ERR(user_class);
> > +           pr_err("Could not create device class for user accisble files 
> > (err %d)\n",
>                                                                ^^^^^^^^
> Typo in error message.

And what is the deal with all these pr_err's? This is a driver, it
needs to use dev_err and related always. Does thatneed to go in the
todo list?

I'm also skeptical we need a print on every error case :|

Jason
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to