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)
commite3e774186d2c011680516b5c65d8197a2b489555
tree6dea0f34476755489961da58efb222642b4fd280
parent1169735dc26c2c9a8e94efc5f66c2c95ce4fce14
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