OSDN Git Service

[media] DaVinci-VPIF-Display: Delete an unnecessary variable initialisation in vpif_c...
authorMarkus Elfring <elfring@users.sourceforge.net>
Wed, 12 Oct 2016 13:43:12 +0000 (10:43 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 16 Nov 2016 15:03:47 +0000 (13:03 -0200)
The local variable "channel_id" will be reassigned with the following
statement at the beginning. Thus omit the explicit initialisation.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/davinci/vpif_display.c

index 867bf5c..3bf68aa 100644 (file)
@@ -363,7 +363,7 @@ static irqreturn_t vpif_channel_isr(int irq, void *dev_id)
        struct channel_obj *ch;
        struct common_obj *common;
        int fid = -1, i;
-       int channel_id = 0;
+       int channel_id;
 
        channel_id = *(int *)(dev_id);
        if (!vpif_intr_status(channel_id + 2))