diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2016-09-07 00:52:24 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-11-16 16:28:40 +0100 |
commit | 29a8d9792514557e26a9b05deaf671f2d83fa8ec (patch) | |
tree | fbdbb0fb4487cbe5b648555f6c2db076d3313315 /drivers/media/usb/gspca/sq905c.c | |
parent | [media] s5p-cec: remove unused including <linux/version.h> (diff) | |
download | linux-29a8d9792514557e26a9b05deaf671f2d83fa8ec.tar.xz linux-29a8d9792514557e26a9b05deaf671f2d83fa8ec.zip |
[media] squash lines for simple wrapper functions
Remove unneeded variables and assignments.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/usb/gspca/sq905c.c')
-rw-r--r-- | drivers/media/usb/gspca/sq905c.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/media/usb/gspca/sq905c.c b/drivers/media/usb/gspca/sq905c.c index e02b8c1d06a2..6c45dcc44eb0 100644 --- a/drivers/media/usb/gspca/sq905c.c +++ b/drivers/media/usb/gspca/sq905c.c @@ -257,11 +257,8 @@ static void sd_stop0(struct gspca_dev *gspca_dev) /* this function is called at probe and resume time */ static int sd_init(struct gspca_dev *gspca_dev) { - int ret; - /* connect to the camera and reset it. */ - ret = sq905c_command(gspca_dev, SQ905C_CLEAR, 0); - return ret; + return sq905c_command(gspca_dev, SQ905C_CLEAR, 0); } /* Set up for getting frames. */ |