]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
zns: NULL arg to free is perfectly acceptable
authorChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Wed, 31 Mar 2021 02:03:37 +0000 (19:03 -0700)
committerKeith Busch <kbusch@kernel.org>
Thu, 8 Apr 2021 00:58:44 +0000 (09:58 +0900)
Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
plugins/zns/zns.c

index 7730f491c6016af7b910d6e854573b47508c20b6..e4dc5a4ca5b950bb2b660adebb9ebe1852f7ce7f 100644 (file)
@@ -338,8 +338,7 @@ close_ffd:
        if (cfg.file)
                close(ffd);
 free:
-       if (buf)
-               free(buf);
+       free(buf);
 close_fd:
        close(fd);
        return nvme_status_to_errno(err, false);