Re: [patch] pm2301-charger: remove unneeded NULL checks

2013-11-12 Thread Anton Vorontsov
On Thu, Nov 07, 2013 at 11:06:17AM +0300, Dan Carpenter wrote: > 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 Applied, thanks! -- To unsubscribe from this list: send the line "u

[patch] pm2301-charger: remove unneeded NULL checks

2013-11-07 Thread Dan Carpenter
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 diff --git a/drivers/power/pm2301_charger.c b/drivers/power/pm2301_charger.c index b733c69..62c15af 100644 --- a/drivers/power/pm2301_char