]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
[media] davinci: vpbe: remove unused variable in vpbe_initialize()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Mon, 3 Dec 2012 01:53:44 +0000 (22:53 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 21 Dec 2012 16:23:09 +0000 (14:23 -0200)
The variable 'output_index' is initialized but never used
otherwise, so remove the unused variable.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: Prabhakar Lad <prabhakar.lad@ti.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/platform/davinci/vpbe.c

index dd670cdb2c2a6d20384da91ed29b1127a559b651..fe2b9ce0bce876c57f4abf42b98c6fde9118bcde 100644 (file)
@@ -584,7 +584,6 @@ static int vpbe_initialize(struct device *dev, struct vpbe_device *vpbe_dev)
        struct v4l2_subdev **enc_subdev;
        struct osd_state *osd_device;
        struct i2c_adapter *i2c_adap;
-       int output_index;
        int num_encoders;
        int ret = 0;
        int err;
@@ -731,7 +730,6 @@ static int vpbe_initialize(struct device *dev, struct vpbe_device *vpbe_dev)
        /* set the current encoder and output to that of venc by default */
        vpbe_dev->current_sd_index = 0;
        vpbe_dev->current_out_index = 0;
-       output_index = 0;
 
        mutex_unlock(&vpbe_dev->lock);