From: NeilBrown Date: Sun, 19 Feb 2012 02:10:00 +0000 (+1100) Subject: w1_bq27000: remove unnecessary NULL test. X-Git-Tag: v3.4-rc1~187^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b6c40b8581d5f2c88d18d7905b9ff6ba9956f506;p=pandora-kernel.git 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 Signed-off-by: NeilBrown Acked-by: Evgeniy Polyakov Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed