From 26ac851ba381f09425f2ebe550afbb8220e99b89 Mon Sep 17 00:00:00 2001 From: kbuild test robot Date: Wed, 1 Mar 2017 22:17:36 +0000 Subject: [PATCH] staging/atomisp: fix returnvar.cocci warnings drivers/staging/media/atomisp/pci/atomisp2/atomisp_subdev.c:161:5-8: Unneeded variable: "ret". Return "0" on line 163 Remove unneeded variable used to store return value. Generated by: scripts/coccinelle/misc/returnvar.cocci Signed-off-by: Fengguang Wu Signed-off-by: Alan Cox Signed-off-by: Greg Kroah-Hartman --- drivers/staging/media/atomisp/pci/atomisp2/atomisp_subdev.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/staging/media/atomisp/pci/atomisp2/atomisp_subdev.c b/drivers/staging/media/atomisp/pci/atomisp2/atomisp_subdev.c index a62320bf0a15..eecd5fc1848a 100644 --- a/drivers/staging/media/atomisp/pci/atomisp2/atomisp_subdev.c +++ b/drivers/staging/media/atomisp/pci/atomisp2/atomisp_subdev.c @@ -158,9 +158,7 @@ uint16_t atomisp_subdev_source_pad(struct video_device * vdev) static long isp_subdev_ioctl(struct v4l2_subdev *sd, unsigned int cmd, void *arg) { - int ret = 0; - - return ret; + return 0; } /* -- 2.30.2