]> git.karo-electronics.de Git - karo-tx-linux.git/commit
hwmon: (nct6775) fix coccinelle warnings
authorFengguang Wu <fengguang.wu@intel.com>
Tue, 17 Sep 2013 13:43:42 +0000 (06:43 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 13 Oct 2013 23:16:30 +0000 (16:16 -0700)
commit87af6409ccc37509d420735795ae7ab4740e4d07
tree24a9a5005d171ffdaf8c5d18cbd770107cd4f6d5
parentc69a49847bd5f444efa6de03b238e0dd0ecd6e3e
hwmon: (nct6775) fix coccinelle warnings

drivers/hwmon/nct6775.c:3866:1-3: WARNING: PTR_RET can be used

 Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR

Generated by: coccinelle/api/ptr_ret.cocci

CC: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/nct6775.c