From: Nickolai Zeldovich Date: Mon, 7 Jan 2013 00:52:03 +0000 (-0300) Subject: [media] media: cx18, ivtv: eliminate unnecessary array index checks X-Git-Tag: v3.9-rc1~93^2~97 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a46edeb0f6098088f316c3543474784f8108508e;p=pandora-kernel.git [media] media: cx18, ivtv: eliminate unnecessary array index checks The idx values passed to cx18_i2c_register() and ivtv_i2c_register() by cx18_init_subdevs() and ivtv_load_and_init_modules() respectively are always in-range, based on how the hw_all bitmask is populated. Previously, the checks were already ineffective because arrays were being dereferenced using the index before the check. Acked-by: Andy Walls Signed-off-by: Nickolai Zeldovich Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed