From: Dan Carpenter Date: Mon, 31 May 2010 19:27:39 +0000 (-0300) Subject: V4L/DVB: remove unneeded null check in anysee_probe() X-Git-Tag: v2.6.36-rc1~582^2~114 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b0d7048dc2f0d2e4344bc8aaf85b4f14196145f;p=pandora-kernel.git V4L/DVB: remove unneeded null check in anysee_probe() Smatch complained because "d" is dereferenced first and then checked for null later . The only code path where "d" could be a invalid pointer is if this is a cold device in dvb_usb_device_init(). I consulted Antti Palosaari and he explained that anysee is always a warm device. I have added a comment and removed the unneeded null check. Signed-off-by: Dan Carpenter Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed