From: Chaitanya Kulkarni Date: Wed, 31 Mar 2021 02:03:37 +0000 (-0700) Subject: zns: NULL arg to free is perfectly acceptable X-Git-Tag: v1.14~9 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=231c895c8bc721af4c94ef4ae5fa036a2f813bca;p=users%2Fsagi%2Fnvme-cli.git zns: NULL arg to free is perfectly acceptable Signed-off-by: Chaitanya Kulkarni --- diff --git a/plugins/zns/zns.c b/plugins/zns/zns.c index 7730f491..e4dc5a4c 100644 --- a/plugins/zns/zns.c +++ b/plugins/zns/zns.c @@ -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);