Skip to content

Commit

Permalink
[media] DaVinci-VPIF-Display: Delete an unnecessary variable initiali…
Browse files Browse the repository at this point in the history
…sation in vpif_channel_isr()

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>
  • Loading branch information
elfring authored and mchehab committed Nov 16, 2016
1 parent 396c88e commit 3ce5f66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/platform/davinci/vpif_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 3ce5f66

Please sign in to comment.