On Fri, Feb 8, 2019 at 2:16 PM Greg KH <gre...@linuxfoundation.org> wrote:
>
> On Mon, Feb 04, 2019 at 10:32:53PM +0200, Oded Gabbay wrote:
> > +int __init hl_debugfs_init(void)
> > +{
> > +     hl_debug_root = debugfs_create_dir("habanalabs", NULL);
> > +     if (IS_ERR_OR_NULL(hl_debug_root)) {
> > +             pr_err("can not create debugfs directory\n");
> > +             hl_debug_root = NULL;
> > +             return -ENOMEM;
> > +     }
> > +
> > +     return 0;
> > +}
>
> This function should just be one line:
> void __init hl_debugfs_init(void)
> {
>         hl_debug_root = debugfs_create_dir("habanalabs", NULL);
> }
>
> No need to do anything else, or check anything.
>
Correct, fixed.

> thanks,
>
> greg k-h

Reply via email to