Skip to contentSkip to conversation

master - cleanup: use trigraph

PATCH Zdenek Kabelac 1 participant 1 message Mar 25, 2014

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=4a6f05e42085c0d3e8bc4b5352b57ab9b4434e02
Commit:        4a6f05e42085c0d3e8bc4b5352b57ab9b4434e02
Parent:        db71739f429f9bd12c93c6686292399f007ce4a9
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Mon Mar 24 10:01:44 2014 +0100
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Tue Mar 25 11:22:58 2014 +0100

cleanup: use trigraph

---
 lib/activate/activate.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
lib/activate/activate.c +1 -4
index 9d404e5..ff13fe4 100644
@@ -45,10 +45,7 @@ int lvm1_present(struct cmd_context *cmd)
 		return 0;
 	}
 
-	if (path_exists(path))
-		return 1;
-	else
-		return 0;
+	return (path_exists(path)) ? 1 : 0;
 }
 
 int list_segment_modules(struct dm_pool *mem, const struct lv_segment *seg,