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 CC: Alan Cox <alan@xxxxxxxxxxxxxxx> Signed-off-by: Fengguang Wu <fengguang.wu@xxxxxxxxx> --- Please take the patch only if it's a positive warning. Thanks! atomisp_subdev.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) --- 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(struc static long isp_subdev_ioctl(struct v4l2_subdev *sd, unsigned int cmd, void *arg) { - int ret = 0; - - return ret; + return 0; } /*