Message ID | alpine.DEB.2.21.1910031342250.2406@hadrien (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | media: i2c: fix returnvar.cocci warnings | expand |
--- a/drivers/media/i2c/imx290.c +++ b/drivers/media/i2c/imx290.c @@ -447,7 +447,6 @@ static int imx290_set_fmt(struct v4l2_su const struct imx290_mode *mode; struct v4l2_mbus_framefmt *format; unsigned int i; - int ret = 0; mutex_lock(&imx290->lock); @@ -483,7 +482,7 @@ static int imx290_set_fmt(struct v4l2_su mutex_unlock(&imx290->lock); - return ret; + return 0; } static int imx290_entity_init_cfg(struct v4l2_subdev *subdev,