[PATCH 11/47] block-rbd: Delete three unnecessary initialisations in rbd_dev_image_name()

From: SF Markus Elfring
Date: Mon Sep 12 2016 - 14:54:39 EST


From: Markus Elfring <elfring@xxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 12 Sep 2016 18:02:16 +0200

Three local variables will be set to appropriate values a bit later.
Thus omit the explicit initialisation at the beginning.

Signed-off-by: Markus Elfring <elfring@xxxxxxxxxxxxxxxxxxxxx>
---
drivers/block/rbd.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/block/rbd.c b/drivers/block/rbd.c
index 145bbcc..90797aa 100644
--- a/drivers/block/rbd.c
+++ b/drivers/block/rbd.c
@@ -5256,9 +5256,9 @@ static char *rbd_dev_image_name(struct rbd_device *rbd_dev)
void *p;
void *end;
size_t size;
- void *reply_buf = NULL;
- size_t len = 0;
- char *image_name = NULL;
+ void *reply_buf;
+ size_t len;
+ char *image_name;
int ret;

rbd_assert(!rbd_dev->spec->image_name);
--
2.10.0