Skip to contentSkip to conversation

master - command: we don't have all standard macros

PATCH Zdenek Kabelac 1 participant 1 message Jun 28, 2017

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=7ba6896962d8fe34139d3d6d49fc08430fbc641a
Commit:        7ba6896962d8fe34139d3d6d49fc08430fbc641a
Parent:        a533892cd3bcb6abd0d0ee3f35f059850e540238
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Wed Jun 28 15:05:16 2017 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Wed Jun 28 15:05:16 2017 +0200

command: we don't have all standard macros

So just quite warning

---
 tools/command.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
tools/command.c +1 -2
index e2e60a3..afd8831 100644
@@ -3304,8 +3304,7 @@ static int include_description_file(char *name, char *des_file)
 out_free:
 	dm_free(buf);
 out_close:
-	if (close(fd))
-		log_sys_debug("close", des_file);
+	(void) close(fd);
 
 	return r;
 }