logging: Fix logging after introduction of the early check
The introduction of a 'if + do {} while' lead to not being able to return the result of the logging anymore. Just return.
This commit is contained in:
parent
72722c34b0
commit
db3684ee61
|
@ -305,8 +305,10 @@ void snmp_mtp_callback(struct snmp_mtp_session *session,
|
|||
struct mtp_link *link;
|
||||
|
||||
ulink = session->data;
|
||||
if (!ulink)
|
||||
return LOGP(DINP, LOGL_ERROR, "Failed to find link_id %d\n", link_id);
|
||||
if (!ulink) {
|
||||
LOGP(DINP, LOGL_ERROR, "Failed to find link_id %d\n", link_id);
|
||||
return;
|
||||
}
|
||||
|
||||
link = ulink->base;
|
||||
|
||||
|
|
Reference in New Issue