projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Clean-up: coding style adjustments
[babeltrace.git]
/
plugins
/
ctf
/
fs-sink
/
writer.c
diff --git
a/plugins/ctf/fs-sink/writer.c
b/plugins/ctf/fs-sink/writer.c
index 36e35d928819ed5ec2b131c04670f421184d6e54..8f383a519de7cef9e5e4407ce3b8390d7c1d3840 100644
(file)
--- a/
plugins/ctf/fs-sink/writer.c
+++ b/
plugins/ctf/fs-sink/writer.c
@@
-297,13
+297,11
@@
enum bt_component_status apply_one_bool(const char *key,
goto end;
}
status = bt_value_bool_get(value, &bool_val);
goto end;
}
status = bt_value_bool_get(value, &bool_val);
- switch (status) {
- case BT_VALUE_STATUS_OK:
- break;
- default:
+ if (status != BT_VALUE_STATUS_OK) {
ret = BT_COMPONENT_STATUS_ERROR;
goto end;
}
ret = BT_COMPONENT_STATUS_ERROR;
goto end;
}
+
*option = (bool) bool_val;
if (found) {
*found = true;
*option = (bool) bool_val;
if (found) {
*found = true;
This page took
0.023683 seconds
and
4
git commands to generate.