projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Standardize `!ptr` i/o `ptr == NULL`, `ptr` i/o `ptr != NULL`
[babeltrace.git]
/
src
/
lib
/
plugin
/
plugin-so.c
diff --git
a/src/lib/plugin/plugin-so.c
b/src/lib/plugin/plugin-so.c
index 319988beeb2dbd1be0406e7a94d89021ddc17cb5..b9ef8005770c5ca92e060fed50dd045fcf877724 100644
(file)
--- a/
src/lib/plugin/plugin-so.c
+++ b/
src/lib/plugin/plugin-so.c
@@
-364,7
+364,7
@@
int bt_plugin_so_init(struct bt_plugin *plugin,
const struct __bt_plugin_descriptor_attribute *cur_attr =
*cur_attr_ptr;
const struct __bt_plugin_descriptor_attribute *cur_attr =
*cur_attr_ptr;
- if (
cur_attr == NULL
) {
+ if (
!cur_attr
) {
continue;
}
continue;
}
@@
-434,7
+434,7
@@
int bt_plugin_so_init(struct bt_plugin *plugin,
*cur_cc_descr_ptr;
struct comp_class_full_descriptor full_descriptor = {0};
*cur_cc_descr_ptr;
struct comp_class_full_descriptor full_descriptor = {0};
- if (
cur_cc_descr == NULL
) {
+ if (
!cur_cc_descr
) {
continue;
}
continue;
}
@@
-457,7
+457,7
@@
int bt_plugin_so_init(struct bt_plugin *plugin,
*cur_cc_descr_attr_ptr;
enum bt_component_class_type cc_type;
*cur_cc_descr_attr_ptr;
enum bt_component_class_type cc_type;
- if (
cur_cc_descr_attr == NULL
) {
+ if (
!cur_cc_descr_attr
) {
continue;
}
continue;
}
@@
-1319,7
+1319,7
@@
int bt_plugin_so_create_all_from_sections(
descriptors_begin[i];
struct bt_plugin *plugin;
descriptors_begin[i];
struct bt_plugin *plugin;
- if (
descriptor == NULL
) {
+ if (
!descriptor
) {
continue;
}
continue;
}
This page took
0.025473 seconds
and
4
git commands to generate.