Message ID | 20221215155534.1616b67a@gandalf.local.home (mailing list archive) |
---|---|
State | Accepted |
Commit | a053233c583fe3e7c53e99a233c3bfac0a828a3b |
Headers | show |
Series | libtracefs: Remove unneeded check of !dynevent in dynevent_info() | expand |
diff --git a/src/tracefs-dynevents.c b/src/tracefs-dynevents.c index 48bb26a96c58..7a3c45ce25a3 100644 --- a/src/tracefs-dynevents.c +++ b/src/tracefs-dynevents.c @@ -713,9 +713,6 @@ dynevent_info(struct tracefs_dynevent *dynevent, char **system, &dynevent->address, &dynevent->format }; int i; - if (!dynevent) - return TRACEFS_DYNEVENT_UNKNOWN; - for (i = 0; i < ARRAY_SIZE(lv); i++) { if (lv[i]) { if (*rv[i]) {