diff options
author | Christophe Varoqui <christophe.varoqui@opensvc.com> | 2011-09-01 21:43:27 +0200 |
---|---|---|
committer | Christophe Varoqui <christophe.varoqui@opensvc.com> | 2011-09-01 21:43:27 +0200 |
commit | 9981ecb4d4d3392847f143ff7635179e6dedc289 (patch) | |
tree | 829a7c86baea1eae3696c9729b3ad780e2a61b9f | |
parent | 7ab80a543f556191ee2820d51142e289e367cda7 (diff) | |
download | multipath-tools-9981ecb4d4d3392847f143ff7635179e6dedc289.tar.gz |
Remove useless alias pointer reset to NULL
This is already done by free_multipath()
-rw-r--r-- | libmultipath/structs_vec.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libmultipath/structs_vec.c b/libmultipath/structs_vec.c index 364e36e..7d1e162 100644 --- a/libmultipath/structs_vec.c +++ b/libmultipath/structs_vec.c @@ -375,10 +375,8 @@ add_map_without_path (struct vectors * vecs, char * alias) mpp->alias = STRDUP(alias); - if (setup_multipath(vecs, mpp)) { - mpp->alias = NULL; + if (setup_multipath(vecs, mpp)) return NULL; /* mpp freed in setup_multipath */ - } if (adopt_paths(vecs->pathvec, mpp, 1)) goto out; |