]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
media: i2c: imx219: remove context around case
authorCosmin Tanislav <demonsingur@gmail.com>
Thu, 20 Feb 2025 14:06:35 +0000 (16:06 +0200)
committerHans Verkuil <hverkuil@xs4all.nl>
Tue, 4 Mar 2025 12:35:32 +0000 (13:35 +0100)
There are no longer variable declarations here, the context is useless.

Signed-off-by: Cosmin Tanislav <demonsingur@gmail.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
drivers/media/i2c/imx219.c

index f662c9d755114265aad46c5cc7f5031b9bc0dbba..fcd98ee54768e47b289c89fb332c491779ef324c 100644 (file)
@@ -947,10 +947,9 @@ static int imx219_get_selection(struct v4l2_subdev *sd,
                                struct v4l2_subdev_selection *sel)
 {
        switch (sel->target) {
-       case V4L2_SEL_TGT_CROP: {
+       case V4L2_SEL_TGT_CROP:
                sel->r = *v4l2_subdev_state_get_crop(state, 0);
                return 0;
-       }
 
        case V4L2_SEL_TGT_NATIVE_SIZE:
                sel->r.top = 0;