media/video/rk30_camera_oneframe: fix compile warning

drivers/media/video/rk30_camera_oneframe.c:2212:5: warning: this if
clause does not guard... [-Wmisleading-indentation]

Change-Id: Ie304d39082a84b322a15b8b74f5b24d9d394b4d7
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
This commit is contained in:
Tao Huang
2018-02-07 19:20:38 +08:00
parent 02a3e3fc5e
commit c763c84a62

View File

@@ -2208,9 +2208,9 @@ static int rk_camera_get_formats(struct soc_camera_device *icd, unsigned int idx
return 0;
}
ret = rk_camera_try_bus_param(icd, fmt->bits_per_sample);
if (ret < 0)
return 0;
ret = rk_camera_try_bus_param(icd, fmt->bits_per_sample);
if (ret < 0)
return 0;
switch (code) {
case MEDIA_BUS_FMT_UYVY8_2X8: