* [PATCH] media: i2c: fix returnvar.cocci warnings
@ 2019-10-03 11:43 Julia Lawall
0 siblings, 0 replies; only message in thread
From: Julia Lawall @ 2019-10-03 11:43 UTC (permalink / raw)
To: Manivannan Sadhasivam
Cc: devicetree, c.barrett, linux-kernel, a.brela, robh+dt,
sakari.ailus, kbuild-all, Manivannan Sadhasivam, mchehab,
linux-arm-kernel, linux-media
From: kbuild test robot <lkp@intel.com>
Remove unneeded variable used to store return value.
Generated by: scripts/coccinelle/misc/returnvar.cocci
Fixes: a80daf4057d7 ("media: i2c: Add IMX290 CMOS image sensor driver")
CC: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Julia Lawall <julia.lawall@lip6.fr>
---
url: https://github.com/0day-ci/linux/commits/Manivannan-Sadhasivam/dt-bindings-media-i2c-Add-IMX290-CMOS-sensor-binding/20191003-175652
base: git://linuxtv.org/media_tree.git master
:::::: branch date: 2 hours ago
:::::: commit date: 2 hours ago
Please take the patch only if it's a positive warning. Thanks!
imx290.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
--- 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,
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-10-03 11:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-03 11:43 [PATCH] media: i2c: fix returnvar.cocci warnings Julia Lawall
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).