diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2015-12-28 16:36:44 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2016-01-25 18:15:39 +0100 |
commit | 61f8e1a73296d065abc959e0c0861ffbdfa2d0b3 (patch) | |
tree | 7f129a3f58f06c265a7d1930208d97fb107be0da /drivers/media/tuners | |
parent | [media] tuners: Refactoring for m88rs6000t_sleep() (diff) | |
download | linux-61f8e1a73296d065abc959e0c0861ffbdfa2d0b3.tar.xz linux-61f8e1a73296d065abc959e0c0861ffbdfa2d0b3.zip |
[media] r820t: Delete an unnecessary variable initialisation in generic_set_freq()
The variable "rc" will be set to an appropriate value from a call of
the r820t_set_tv_standard() function.
Thus let us omit the explicit initialisation at the beginning.
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/tuners')
-rw-r--r-- | drivers/media/tuners/r820t.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/tuners/r820t.c b/drivers/media/tuners/r820t.c index a7a8452e99d2..6ab35e315fe7 100644 --- a/drivers/media/tuners/r820t.c +++ b/drivers/media/tuners/r820t.c @@ -1295,7 +1295,7 @@ static int generic_set_freq(struct dvb_frontend *fe, v4l2_std_id std, u32 delsys) { struct r820t_priv *priv = fe->tuner_priv; - int rc = -EINVAL; + int rc; u32 lo_freq; tuner_dbg("should set frequency to %d kHz, bw %d MHz\n", |