diff options
author | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-09-03 15:16:53 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-09-03 16:59:57 -0400 |
commit | ea21f702fc65e1f343dcbc422613cbb8af23d901 (patch) | |
tree | da0454b658837868d31c89b1c2458948d05607c7 /drivers/media/usb/cx231xx | |
parent | 2f00fce46793bc5b523c64dcefd7bac13ab70b9c (diff) |
[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>
Diffstat (limited to 'drivers/media/usb/cx231xx')
-rw-r--r-- | drivers/media/usb/cx231xx/cx231xx-dvb.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/media/usb/cx231xx/cx231xx-dvb.c b/drivers/media/usb/cx231xx/cx231xx-dvb.c index 2adfecf70236..6c7b5e250eed 100644 --- a/drivers/media/usb/cx231xx/cx231xx-dvb.c +++ b/drivers/media/usb/cx231xx/cx231xx-dvb.c | |||
@@ -403,8 +403,6 @@ static int attach_xc5000(u8 addr, struct cx231xx *dev) | |||
403 | 403 | ||
404 | int cx231xx_set_analog_freq(struct cx231xx *dev, u32 freq) | 404 | int cx231xx_set_analog_freq(struct cx231xx *dev, u32 freq) |
405 | { | 405 | { |
406 | int status = 0; | ||
407 | |||
408 | if ((dev->dvb != NULL) && (dev->dvb->frontend != NULL)) { | 406 | if ((dev->dvb != NULL) && (dev->dvb->frontend != NULL)) { |
409 | 407 | ||
410 | struct dvb_tuner_ops *dops = &dev->dvb->frontend->ops.tuner_ops; | 408 | 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) | |||
423 | 421 | ||
424 | } | 422 | } |
425 | 423 | ||
426 | return status; | 424 | return 0; |
427 | } | 425 | } |
428 | 426 | ||
429 | int cx231xx_reset_analog_tuner(struct cx231xx *dev) | 427 | int cx231xx_reset_analog_tuner(struct cx231xx *dev) |