[COMMIT seastar master] apps/iotune: s/condition == false/!condition/

1 view
Skip to first unread message

Commit Bot

<bot@cloudius-systems.com>
unread,
Jan 26, 2023, 4:46:48 AM1/26/23
to seastar-dev@googlegroups.com, Kefu Chai
From: Kefu Chai <kefu...@scylladb.com>
Committer: Avi Kivity <a...@scylladb.com>
Branch: master

apps/iotune: s/condition == false/!condition/

simpler this way, and for better readability.

Signed-off-by: Kefu Chai <kefu...@scylladb.com>

---
diff --git a/apps/iotune/iotune.cc b/apps/iotune/iotune.cc
--- a/apps/iotune/iotune.cc
+++ b/apps/iotune/iotune.cc
@@ -739,7 +739,7 @@ int main(int ac, char** av) {
auto mountpoint = eval.first;
auto eval_dir = eval.second;

- if (filesystem_has_good_aio_support(eval_dir, false) == false) {
+ if (!filesystem_has_good_aio_support(eval_dir, false)) {
iotune_logger.error("Exception when qualifying filesystem at {}", eval_dir);
return 1;
}
Reply all
Reply to author
Forward
0 new messages