diff options
author | Ankita Patil <patil.ankita.r@gmail.com> | 2014-09-18 12:31:00 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-09-19 16:53:57 -0700 |
commit | 335d9c85be096cf492cb3eaeef160b45e1f25d8d (patch) | |
tree | bf356dc5cfed8e3be212a10d71ee0d0e32cc7291 | |
parent | 50d0a21b61f22b38f881fa21d2ada6ab4a61f93f (diff) |
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: Ankita Patil <patil.ankita.r@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/media/omap24xx/omap24xxcam.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/drivers/staging/media/omap24xx/omap24xxcam.c b/drivers/staging/media/omap24xx/omap24xxcam.c index d2b440c842b3..d590b3e8b70c 100644 --- a/drivers/staging/media/omap24xx/omap24xxcam.c +++ b/drivers/staging/media/omap24xx/omap24xxcam.c @@ -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, |