class_device_create() return val check

2006-02-15
2013-06-04
  • Sergei Sharonov

    Sergei Sharonov - 2006-02-15

    In main.c the return value of class_device_create() is checked for NULL pointer. I believe it should be IS_ERR(this_dev) since failed function will return ERR_PTR(-ENODEV), not NULL.

    Sergei Sharonov

     
    • Pavel Pisa

      Pavel Pisa - 2006-02-18

      Thanks for notice of this mistake. CVS updated.

       

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks