staging/atomisp: fix returnvar.cocci warnings
authorkbuild test robot <[email protected]>
Wed, 1 Mar 2017 22:17:36 +0000 (22:17 +0000)
committerGreg Kroah-Hartman <[email protected]>
Mon, 6 Mar 2017 10:14:23 +0000 (11:14 +0100)
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 <[email protected]>
Signed-off-by: Alan Cox <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
drivers/staging/media/atomisp/pci/atomisp2/atomisp_subdev.c

index a62320bf0a15c0b650a5c1e2879045ec352849f4..eecd5fc1848a23f368b8c4baccf6255c459b3d62 100644 (file)
@@ -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;
 }
 
 /*