[media] DaVinci-VPIF-Display: Delete an unnecessary variable initialisation in proces...
authorMarkus Elfring <elfring@users.sourceforge.net>
Wed, 12 Oct 2016 13:45:03 +0000 (10:45 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 16 Nov 2016 15:04:14 +0000 (13:04 -0200)
The local variable "addr" will be set to an appropriate value a bit later.
Thus omit the explicit initialisation at the beginning.

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 3bf68aace5af8928bad92fe3c2e50721b6aa826a..e5f18448dbf73e6cc73c9e573f6fa537a8edf60e 100644 (file)
@@ -301,7 +301,7 @@ static struct vb2_ops video_qops = {
 
 static void process_progressive_mode(struct common_obj *common)
 {
-       unsigned long addr = 0;
+       unsigned long addr;
 
        spin_lock(&common->irqlock);
        /* Get the next buffer from buffer queue */