|
@@ -1050,8 +1050,8 @@ static int stk_setup_format(struct stk_camera *dev)
|
|
depth = 1;
|
|
depth = 1;
|
|
else
|
|
else
|
|
depth = 2;
|
|
depth = 2;
|
|
- while (stk_sizes[i].m != dev->vsettings.mode
|
|
|
|
- && i < ARRAY_SIZE(stk_sizes))
|
|
|
|
|
|
+ while (i < ARRAY_SIZE(stk_sizes) &&
|
|
|
|
+ stk_sizes[i].m != dev->vsettings.mode)
|
|
i++;
|
|
i++;
|
|
if (i == ARRAY_SIZE(stk_sizes)) {
|
|
if (i == ARRAY_SIZE(stk_sizes)) {
|
|
STK_ERROR("Something is broken in %s\n", __func__);
|
|
STK_ERROR("Something is broken in %s\n", __func__);
|