From: Markus Elfring <[email protected]>
Date: Sat, 1 Oct 2016 07:37:27 +0200

The local variable "argv" will be set to an appropriate pointer
a bit later. Thus omit the explicit initialisation at the beginning.

Signed-off-by: Markus Elfring <[email protected]>
---
 drivers/md/dm-table.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/md/dm-table.c b/drivers/md/dm-table.c
index 67cc635..e74763c 100644
--- a/drivers/md/dm-table.c
+++ b/drivers/md/dm-table.c
@@ -538,7 +538,7 @@ static char **realloc_argv(unsigned *array_size, char 
**old_argv)
  */
 int dm_split_args(int *argc, char ***argvp, char *input)
 {
-       char *start, *end = input, *out, **argv = NULL;
+       char *start, *end = input, *out, **argv;
        unsigned array_size = 0;
 
        *argc = 0;
-- 
2.10.0

Reply via email to