Skip to contentSkip to conversation

media: i2c: imx219: remove context around case

PATCH In review Cosmin Tanislav 2 participants 2 messages Feb 20, 2025

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 media: i2c: imx219: remove context around case

There are no longer variable declarations here, the context is useless.

---
 drivers/media/i2c/imx219.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/media/i2c/imx219.c +1 -2
index f662c9d755114..fcd98ee54768e 100644
@@ -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;
Signature · 1 line
2.48.1
maintainer Reviewed-by on v1 1/1
#1 lore raw

Hi Cosmin

Thanks for the patch.

Quoted 4 lines · Cosmin Tanislav

There are no longer variable declarations here, the context is useless.

Quoted 23 lines
---
 drivers/media/i2c/imx219.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/media/i2c/imx219.c +1 -3
index f662c9d755114..fcd98ee54768e 100644
@@ -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;
--

2.48.1