]> git.baikalelectronics.ru Git - kernel.git/commit
power: supply: wm97xx_battery: remove redundant 2nd null check on pdata
authorColin Ian King <colin.king@canonical.com>
Thu, 29 Dec 2016 15:23:12 +0000 (15:23 +0000)
committerSebastian Reichel <sre@kernel.org>
Wed, 4 Jan 2017 21:04:20 +0000 (22:04 +0100)
commit3898fd33693eaba53a83e2366ab06222652449e0
tree6dea0f34476755489961da58efb222642b4fd280
parent032e088837dd248cc1de6e618144d10250d7e723
power: supply: wm97xx_battery: remove redundant 2nd null check on pdata

pdata is being null checked twice, the 2nd check is redundant code
and can be removed.

Fixes CoverityScan CID 1392340 "Logically dead code"

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/supply/wm97xx_battery.c