]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[media] cx231xx: just return 0 instead of using a var
authorMauro Carvalho Chehab <m.chehab@samsung.com>
Wed, 3 Sep 2014 19:16:53 +0000 (16:16 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Wed, 3 Sep 2014 20:59:57 +0000 (17:59 -0300)
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>
drivers/media/usb/cx231xx/cx231xx-dvb.c

index 2adfecf70236a7dc4cc3b5672c06fd57c803147e..6c7b5e250eed7fc2903eae3f56039ed195fd4d33 100644 (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 status = 0;
-
        if ((dev->dvb != NULL) && (dev->dvb->frontend != NULL)) {
 
                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)