diff options
author | Colin Ian King <colin.king@canonical.com> | 2017-10-27 19:20:08 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-10-31 14:26:39 +0300 |
commit | 66b72cf1857b508d99f4eabea278e9ec366ee7fd (patch) | |
tree | f125859bb66b79d5c77b7dcf896924f5b42f7e9c /drivers/media/radio/radio-raremono.c | |
parent | b3168c87c0492661badc3e908f977d79e7738a41 (diff) | |
download | linux-66b72cf1857b508d99f4eabea278e9ec366ee7fd.tar.xz |
media: radio-raremono: remove redundant initialization of freq
Variable freq is initialized to f->frequency however this value
is never read and freq is later updated; hence the initialization
is redundant and can be removed.
Cleans up clang warning:
drivers/media/radio/radio-raremono.c:257:6: warning: Value stored
to 'freq' during its initialization is never read
Signed-off-by: Colin Ian King <colin.king@canonical.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/radio/radio-raremono.c')
-rw-r--r-- | drivers/media/radio/radio-raremono.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/radio/radio-raremono.c b/drivers/media/radio/radio-raremono.c index 3c0a22a54113..70a2c86774ce 100644 --- a/drivers/media/radio/radio-raremono.c +++ b/drivers/media/radio/radio-raremono.c @@ -254,7 +254,7 @@ static int vidioc_s_frequency(struct file *file, void *priv, const struct v4l2_frequency *f) { struct raremono_device *radio = video_drvdata(file); - u32 freq = f->frequency; + u32 freq; unsigned band; if (f->tuner != 0 || f->type != V4L2_TUNER_RADIO) |