]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
[media] bt8xx: Delete unnecessary variable initialisations in ca_send_message()
authorMarkus Elfring <elfring@users.sourceforge.net>
Sat, 10 Dec 2016 19:56:04 +0000 (17:56 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 3 Feb 2017 11:20:11 +0000 (09:20 -0200)
Two local variables 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: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/pci/bt8xx/dst_ca.c

index 54e656ddd588aeae4e3bc2117eafee0aae5d6640..04d06c564602566e442cd427ec7878ed87a22d98 100644 (file)
@@ -475,9 +475,8 @@ static int dst_check_ca_pmt(struct dst_state *state, struct ca_msg *p_ca_message
 
 static int ca_send_message(struct dst_state *state, struct ca_msg *p_ca_message, void __user *arg)
 {
-       int i = 0;
-
-       u32 command = 0;
+       int i;
+       u32 command;
        struct ca_msg *hw_buffer;
        int result = 0;