OSDN Git Service

mmc: sdhci: host: fix odd_ptr_err.cocci warnings
authorWu Fengguang <fengguang.wu@intel.com>
Wed, 21 Jan 2015 11:19:45 +0000 (19:19 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 21 Jan 2015 11:33:43 +0000 (12:33 +0100)
commit3e7cf90213e789bdc13f2638cc9d8b9993d5491e
tree213dc163464a206fc9e746bd67fc7d5883fe93ea
parent6bb836d6fabd18d5854fcf40debdfe11cd063e6f
mmc: sdhci: host: fix odd_ptr_err.cocci warnings

drivers/mmc/host/sdhci_f_sdh30.c:143:5-11: inconsistent IS_ERR and PTR_ERR, PTR_ERR on line 144

 PTR_ERR should access the value just tested by IS_ERR

Semantic patch information:
 There can be false positives in the patch case, where it is the call
 IS_ERR that is wrong.

Generated by: scripts/coccinelle/tests/odd_ptr_err.cocci

CC: Vincent Yang <vincent.yang.fujitsu@gmail.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci_f_sdh30.c