summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCosmin Tanislav <demonsingur@gmail.com>2025-02-20 16:06:35 +0200
committerHans Verkuil <hverkuil@xs4all.nl>2025-03-04 13:35:32 +0100
commit2256456c2671b3414f6ad80914b0420db7ef73da (patch)
treeddbb6dd4f8ebcd2e84bb7c9bc5f35b57cc5a2449
parent38985a25682c66d1a7599b0e95ceeb9c7ba89f84 (diff)
media: i2c: imx219: remove context around case
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>
-rw-r--r--drivers/media/i2c/imx219.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/i2c/imx219.c b/drivers/media/i2c/imx219.c
index f662c9d75511..fcd98ee54768 100644
--- a/drivers/media/i2c/imx219.c
+++ b/drivers/media/i2c/imx219.c
@@ -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;