diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2018-02-22 23:45:47 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2018-03-06 18:39:59 +0300 |
commit | 9aa4d4ea244481fe98eb181ec5d7a9f7cb86f076 (patch) | |
tree | 0a80ffce88f9ca6775796c57f49f1686ea4a9a16 /drivers/media/radio/radio-wl1273.c | |
parent | 7b69f2cb91319abdacf37be501db2eae45112a09 (diff) | |
download | linux-9aa4d4ea244481fe98eb181ec5d7a9f7cb86f076.tar.xz |
media: usb: don't initialize vars if not needed
Some local variables will be set to an appropriate value before usage.
Thus omit explicit initialisations at the beginning of these functions.
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Acked-by: Alexey Klimov <klimov.linux@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/radio/radio-wl1273.c')
-rw-r--r-- | drivers/media/radio/radio-wl1273.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/radio/radio-wl1273.c b/drivers/media/radio/radio-wl1273.c index 58e944591602..8f9f8dfc3497 100644 --- a/drivers/media/radio/radio-wl1273.c +++ b/drivers/media/radio/radio-wl1273.c @@ -671,7 +671,7 @@ fail: static int wl1273_fm_suspend(struct wl1273_device *radio) { struct wl1273_core *core = radio->core; - int r = 0; + int r; /* Cannot go from OFF to SUSPENDED */ if (core->mode == WL1273_MODE_RX) |