]> git.karo-electronics.de Git - karo-tx-linux.git/commit
pm2301-charger: Remove unneeded NULL checks
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 7 Nov 2013 08:06:17 +0000 (11:06 +0300)
committerAnton Vorontsov <anton@enomsg.org>
Wed, 13 Nov 2013 06:36:34 +0000 (22:36 -0800)
commitc8024234c20eaf7b163cc4dbd963cb9cd03a4ff1
treec4d8e67a8da0551632a471c0f6b9bc4e4ac0d89e
parentec0b380245d7b7d4d8e4201facca780a14352cda
pm2301-charger: Remove unneeded NULL checks

If "pm2" were NULL we would oops printing the error message.
Fortunately, that's not possible so I have removed the NULL checks.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Anton Vorontsov <anton@enomsg.org>
drivers/power/pm2301_charger.c