Found by Coverity:
notnull: At condition event, the value of event cannot be NULL.
dead_error_condition: The condition event must be true.
CID
1376157 (#1 of 1): Logically dead code (DEADCODE)dead_error_line:
Execution cannot reach the expression NULL inside this statement:
event_class = (event ? bt_g...
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
goto end;
}
- event_class = event ? bt_get(bt_ctf_event_borrow_event_class(event)) :
- NULL;
+ event_class = bt_get(bt_ctf_event_borrow_event_class(event));
end:
return event_class;
}