From: Jiri Slaby Date: Mon, 19 Jul 2010 17:39:34 +0000 (-0300) Subject: V4L/DVB: VIDEO: ivtvfb, remove unneeded NULL test X-Git-Tag: v2.6.36-rc1~582^2~58 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=37b58bfe4bb3df303aa9d7f1ccdbfc477b42c5e2;p=pandora-kernel.git V4L/DVB: VIDEO: ivtvfb, remove unneeded NULL test Stanse found that in ivtvfb_callback_cleanup and ivtvfb_callback_init there are unneeded tests for itv being NULL. But itv is initialized as container_of with non-zero offset in those functions, so it is never NULL (even if v4l2_dev is). This was found because itv is dereferenced earlier than the test. Signed-off-by: Jiri Slaby Reviewed-by: Andy Walls Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed