NeilBrown b6c40b8581 w1_bq27000: remove unnecessary NULL test.
As recent change means that we now dereference 'dev' before testing
for NULL.

That means either the change was wrong, or the test isn't needed.
As this function is only called from one driver (bq27x000_battery) and
it always passed a non-NULL dev, it seems good to assume that the
test isn't needed.

So remove it.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Acked-by: Evgeniy Polyakov <zbr@ioremap.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-02-24 14:25:50 -08:00
..
2011-08-25 16:25:33 -07:00
2011-08-25 16:25:33 -07:00
2011-11-02 16:07:03 -07:00
2011-08-25 16:25:33 -07:00
2011-08-25 16:25:33 -07:00
2011-08-25 16:25:33 -07:00
2011-12-09 19:19:18 -08:00
2011-08-25 16:25:33 -07:00