[PATCH 4/9] md/dm-table: Delete an unnecessary variable initialisation in dm_split_args()

From: SF Markus Elfring
Date: Sat Oct 01 2016 - 03:47:06 EST


From: Markus Elfring <elfring@xxxxxxxxxxxxxxxxxxxxx>
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 <elfring@xxxxxxxxxxxxxxxxxxxxx>
---
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