b6c40b8581
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> |
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
w1_bq27000.c | ||
w1_ds2408.c | ||
w1_ds2423.c | ||
w1_ds2431.c | ||
w1_ds2433.c | ||
w1_ds2760.c | ||
w1_ds2760.h | ||
w1_ds2780.c | ||
w1_ds2780.h | ||
w1_smem.c | ||
w1_therm.c |