Commit 408679cd authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

[media] tda9887: remove an warning when compiling for alpha

There's no need to zero the buffer, as if the routine gets an error,
rc will be different than one.
That fixes the following warning:
	drivers/media/tuners/tda9887.c: In function 'tda9887_status':
	drivers/media/tuners/tda9887.c:539:2: warning: value computed is not used [-Wunused-value]
While here, make fix the CodingStyle on this function.
Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
Reviewed-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
parent 80f93c7b
...@@ -536,8 +536,8 @@ static int tda9887_status(struct dvb_frontend *fe) ...@@ -536,8 +536,8 @@ static int tda9887_status(struct dvb_frontend *fe)
unsigned char buf[1]; unsigned char buf[1];
int rc; int rc;
memset(buf,0,sizeof(buf)); rc = tuner_i2c_xfer_recv(&priv->i2c_props, buf, 1);
if (1 != (rc = tuner_i2c_xfer_recv(&priv->i2c_props,buf,1))) if (rc != 1)
tuner_info("i2c i/o error: rc == %d (should be 1)\n", rc); tuner_info("i2c i/o error: rc == %d (should be 1)\n", rc);
dump_read_message(fe, buf); dump_read_message(fe, buf);
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment