SDOCM00112117: Resolve Coverity warning for HPLIB
authorTinku Mannan <tmannan@ti.com>
Thu, 25 Sep 2014 12:17:36 +0000 (08:17 -0400)
committerTinku Mannan <tmannan@ti.com>
Thu, 25 Sep 2014 12:17:36 +0000 (08:17 -0400)
ti/runtime/hplib/module/hplibmod.c

index 0a88279dc0343cbbedb50edd79ef066100560184..af44a5bef5196cd08e61e1fe705513357c9ded99 100755 (executable)
@@ -346,7 +346,8 @@ static int __init hplibmod_init_module(void)
         ret = PTR_ERR(hplib_dev);
         goto cleanup_dev;
     }
-    device_create_file(hplib_dev,&dev_attr_hplib);
+    ret = device_create_file(hplib_dev,&dev_attr_hplib);
+    WARN_ON(ret < 0);
 
     __D("module loaded\n");