summaryrefslogtreecommitdiffstats
path: root/drivers/media/usb/cx231xx
diff options
context:
space:
mode:
authorMarkus Elfring2018-02-22 21:45:47 +0100
committerMauro Carvalho Chehab2018-03-06 16:39:59 +0100
commit9aa4d4ea244481fe98eb181ec5d7a9f7cb86f076 (patch)
tree0a80ffce88f9ca6775796c57f49f1686ea4a9a16 /drivers/media/usb/cx231xx
parentmedia: ov772x: constify ov772x_frame_intervals (diff)
downloadkernel-qcow2-linux-9aa4d4ea244481fe98eb181ec5d7a9f7cb86f076.tar.gz
kernel-qcow2-linux-9aa4d4ea244481fe98eb181ec5d7a9f7cb86f076.tar.xz
kernel-qcow2-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/usb/cx231xx')
-rw-r--r--drivers/media/usb/cx231xx/cx231xx-cards.c2
-rw-r--r--drivers/media/usb/cx231xx/cx231xx-dvb.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/usb/cx231xx/cx231xx-cards.c b/drivers/media/usb/cx231xx/cx231xx-cards.c
index 8582568f0dcd..c5edbd5bdb7e 100644
--- a/drivers/media/usb/cx231xx/cx231xx-cards.c
+++ b/drivers/media/usb/cx231xx/cx231xx-cards.c
@@ -1217,7 +1217,7 @@ static void cx231xx_config_tuner(struct cx231xx *dev)
static int read_eeprom(struct cx231xx *dev, struct i2c_client *client,
u8 *eedata, int len)
{
- int ret = 0;
+ int ret;
u8 start_offset = 0;
int len_todo = len;
u8 *eedata_cur = eedata;
diff --git a/drivers/media/usb/cx231xx/cx231xx-dvb.c b/drivers/media/usb/cx231xx/cx231xx-dvb.c
index 63deca9b5017..7c3863ad6f23 100644
--- a/drivers/media/usb/cx231xx/cx231xx-dvb.c
+++ b/drivers/media/usb/cx231xx/cx231xx-dvb.c
@@ -630,7 +630,7 @@ static void unregister_dvb(struct cx231xx_dvb *dvb)
static int dvb_init(struct cx231xx *dev)
{
- int result = 0;
+ int result;
struct cx231xx_dvb *dvb;
struct i2c_adapter *tuner_i2c;
struct i2c_adapter *demod_i2c;