From 005cd9870f4f961e56cc4fba711b5725d7e5609a Mon Sep 17 00:00:00 2001 From: Chaitanya Kulkarni Date: Tue, 30 Mar 2021 19:03:38 -0700 Subject: [PATCH] zns: NULL arg to free is perfectly acceptable Signed-off-by: Chaitanya Kulkarni --- plugins/zns/zns.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/zns/zns.c b/plugins/zns/zns.c index e4dc5a4c..75caa5c1 100644 --- a/plugins/zns/zns.c +++ b/plugins/zns/zns.c @@ -541,8 +541,7 @@ static int zone_mgmt_recv(int argc, char **argv, struct command *cmd, struct plu else perror("zns zone-mgmt-recv"); - if (data) - free(data); + free(data); close_fd: close(fd); return nvme_status_to_errno(err, false); -- 2.50.1