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 -- To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html