Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 335d9c85 authored by Ankita Patil's avatar Ankita Patil Committed by Greg Kroah-Hartman
Browse files

Staging: dgap: Remove unnecessary variable.



This patch removes unnecessary variable in file dgap.c
using Coccinelle. Semantic patch for this is as follows:

@@
expression ret;
identifier f;
@@

-ret =
+return
     f(...);
-return ret;

Also removed the unneeded variable manually.

Signed-off-by: default avatarAnkita Patil <patil.ankita.r@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 50d0a21b
Loading
Loading
Loading
Loading
+2 −8
Original line number Diff line number Diff line
@@ -1003,11 +1003,8 @@ static int vidioc_enum_fmt_vid_cap(struct file *file, void *fh,
{
	struct omap24xxcam_fh *ofh = fh;
	struct omap24xxcam_device *cam = ofh->cam;
	int rval;

	rval = vidioc_int_enum_fmt_cap(cam->sdev, f);

	return rval;
	return vidioc_int_enum_fmt_cap(cam->sdev, f);
}

static int vidioc_g_fmt_vid_cap(struct file *file, void *fh,
@@ -1245,11 +1242,8 @@ static int vidioc_queryctrl(struct file *file, void *fh,
{
	struct omap24xxcam_fh *ofh = fh;
	struct omap24xxcam_device *cam = ofh->cam;
	int rval;

	rval = vidioc_int_queryctrl(cam->sdev, a);

	return rval;
	return vidioc_int_queryctrl(cam->sdev, a);
}

static int vidioc_g_ctrl(struct file *file, void *fh,