[media] cx231xx: just return 0 instead of using a var

Instead of allocating a var to store 0 and just return it,
change the code to return 0 directly.

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
This commit is contained in:
Mauro Carvalho Chehab 2014-09-03 16:16:53 -03:00
parent 2f00fce467
commit ea21f702fc
1 changed files with 1 additions and 3 deletions

View File

@ -403,8 +403,6 @@ static int attach_xc5000(u8 addr, struct cx231xx *dev)
int cx231xx_set_analog_freq(struct cx231xx *dev, u32 freq) int cx231xx_set_analog_freq(struct cx231xx *dev, u32 freq)
{ {
int status = 0;
if ((dev->dvb != NULL) && (dev->dvb->frontend != NULL)) { if ((dev->dvb != NULL) && (dev->dvb->frontend != NULL)) {
struct dvb_tuner_ops *dops = &dev->dvb->frontend->ops.tuner_ops; struct dvb_tuner_ops *dops = &dev->dvb->frontend->ops.tuner_ops;
@ -423,7 +421,7 @@ int cx231xx_set_analog_freq(struct cx231xx *dev, u32 freq)
} }
return status; return 0;
} }
int cx231xx_reset_analog_tuner(struct cx231xx *dev) int cx231xx_reset_analog_tuner(struct cx231xx *dev)