]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: atomisp: fix missing break in switch statement
authorColin Ian King <colin.king@canonical.com>
Mon, 13 Mar 2017 18:20:28 +0000 (18:20 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Mar 2017 00:00:37 +0000 (08:00 +0800)
I believe there is a missing break in the switch statement for
case V4L2_CID_FOCUS_STATUS as the current fall-through looks
suspect to me.

Detected by CoverityScan, CID#1416580 ("Missing break in switch")

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/media/atomisp/i2c/ov5693/ov5693.c

index e3d4d0e0ed9c5a684200acd769aac02522ba502f..ac7598291b9591cdb238a7c3ee36f71da3b80551 100644 (file)
@@ -1132,7 +1132,7 @@ static int ov5693_g_volatile_ctrl(struct v4l2_ctrl *ctrl)
                break;
        case V4L2_CID_FOCUS_STATUS:
                ret = ov5693_q_focus_status(&dev->sd, &ctrl->val);
-
+               break;
        case V4L2_CID_BIN_FACTOR_HORZ:
                ret = ov5693_g_bin_factor_x(&dev->sd, &ctrl->val);
                break;