]> git.karo-electronics.de Git - linux-beck.git/commit
power: supply: lp8788: remove an unneeded NULL check
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 14 Oct 2016 07:33:28 +0000 (10:33 +0300)
committerSebastian Reichel <sre@kernel.org>
Wed, 19 Oct 2016 03:36:09 +0000 (05:36 +0200)
commit44fccac4ff17371054f795f89e23f0b60bb516c1
tree674c49048b0866886343b8780b03e7fed6ebd294
parent93f7c27b4dc56f144b954424031baae0f6a0e808
power: supply: lp8788: remove an unneeded NULL check

We checked that "pdata->chg_params" is non-NULL earlier in this function
so when we add "i" to it, it's still non-NULL.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Milo Kim <milo.kim@ti.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/supply/lp8788-charger.c