From 5577f2f4f0a5518662b9cedb6a373ccb67a71917 Mon Sep 17 00:00:00 2001 From: Peter Rajnoha Date: Wed, 17 Jun 2015 14:12:18 +0200 Subject: [PATCH] cleanup: || instead of | More efficient with same result here. --- lib/activate/dev_manager.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/activate/dev_manager.c b/lib/activate/dev_manager.c index 8a54bec13..43e006a4c 100644 --- a/lib/activate/dev_manager.c +++ b/lib/activate/dev_manager.c @@ -502,13 +502,13 @@ static int _ignore_suspended_snapshot_component(struct device *dev) log_error("Incorrect snapshot table found"); goto_out; } - r = r | _device_is_suspended(major1, minor1) | _device_is_suspended(major2, minor2); + r = r || _device_is_suspended(major1, minor1) || _device_is_suspended(major2, minor2); } else if (!strcmp(target_type, "snapshot-origin")) { if (sscanf(params, "%d:%d", &major1, &minor1) != 2) { log_error("Incorrect snapshot-origin table found"); goto_out; } - r = r | _device_is_suspended(major1, minor1); + r = r || _device_is_suspended(major1, minor1); } } while (next); -- 2.43.5