From: Nishanth Menon Date: Thu, 27 Mar 2014 16:18:33 +0000 (-0500) Subject: i2c: omap: fix usage of IS_ERR_VALUE with pm_runtime_get_sync X-Git-Tag: v3.15-rc1~41^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff370257ed0bba6e98a9538fefa402a4696f9857;p=pandora-kernel.git i2c: omap: fix usage of IS_ERR_VALUE with pm_runtime_get_sync we use IS_ERR_VALUE to check for error values of pm_runtime_get_sync, when the value can only be < 0 in the case of err. Replace the check with a simpler < 0 check. This fixes the coccicheck warnings: linux-2.6/drivers/i2c/busses/i2c-omap.c:1157:5-24: pm_runtime_get_sync returns < 0 as error. Unecessary IS_ERR_VALUE at line 1158 linux-2.6/drivers/i2c/busses/i2c-omap.c:1278:7-26: pm_runtime_get_sync returns < 0 as error. Unecessary IS_ERR_VALUE at line 1279 drivers/i2c/busses/i2c-omap.c:638:5-24: pm_runtime_get_sync returns < 0 as error. Unecessary IS_ERR_VALUE at line 639 Signed-off-by: Nishanth Menon Reviewed-by: Felipe Balbi Signed-off-by: Wolfram Sang --- Reading git-diff-tree failed