Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

media: smiapp: Remove unused loop

The loop seemed to be made to calculate max, but max is not used in that
function.

Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>

authored by

Ricardo Ribalda Delgado and committed by
Mauro Carvalho Chehab
5f108da5 b791187b

+1 -3
+1 -3
drivers/media/i2c/smiapp/smiapp-core.c
··· 624 624 { 625 625 unsigned long *valid_link_freqs = &sensor->valid_link_freqs[ 626 626 sensor->csi_format->compressed - sensor->compressed_min_bpp]; 627 - unsigned int max, i; 627 + unsigned int i; 628 628 629 629 for (i = 0; i < ARRAY_SIZE(sensor->test_data); i++) { 630 630 int max_value = (1 << sensor->csi_format->width) - 1; ··· 634 634 &smiapp_ctrl_ops, V4L2_CID_TEST_PATTERN_RED + i, 635 635 0, max_value, 1, max_value); 636 636 } 637 - 638 - for (max = 0; sensor->hwcfg->op_sys_clock[max + 1]; max++); 639 637 640 638 sensor->link_freq = v4l2_ctrl_new_int_menu( 641 639 &sensor->src->ctrl_handler, &smiapp_ctrl_ops,