aboutsummaryrefslogtreecommitdiff
path: root/drivers/media/radio/radio-mr800.c
diff options
context:
space:
mode:
authorGravatar Markus Elfring <elfring@users.sourceforge.net> 2018-02-22 15:45:47 -0500
committerGravatar Mauro Carvalho Chehab <mchehab@s-opensource.com> 2018-03-06 10:39:59 -0500
commit9aa4d4ea244481fe98eb181ec5d7a9f7cb86f076 (patch)
tree0a80ffce88f9ca6775796c57f49f1686ea4a9a16 /drivers/media/radio/radio-mr800.c
parentmedia: ov772x: constify ov772x_frame_intervals (diff)
downloadlinux-9aa4d4ea244481fe98eb181ec5d7a9f7cb86f076.tar.gz
linux-9aa4d4ea244481fe98eb181ec5d7a9f7cb86f076.tar.bz2
linux-9aa4d4ea244481fe98eb181ec5d7a9f7cb86f076.zip
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-mr800.c')
-rw-r--r--drivers/media/radio/radio-mr800.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/radio/radio-mr800.c b/drivers/media/radio/radio-mr800.c
index dc6c4f985911..0f292c6ba338 100644
--- a/drivers/media/radio/radio-mr800.c
+++ b/drivers/media/radio/radio-mr800.c
@@ -511,7 +511,7 @@ static int usb_amradio_probe(struct usb_interface *intf,
const struct usb_device_id *id)
{
struct amradio_device *radio;
- int retval = 0;
+ int retval;
radio = kzalloc(sizeof(struct amradio_device), GFP_KERNEL);