9
0
Fork 0

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:
Holger Hans Peter Freyther 2016-03-02 17:45:56 +01:00
parent 72722c34b0
commit db3684ee61
1 changed files with 4 additions and 2 deletions

View File

@ -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;