app-layer-detect-proto: remove unnecessary gotos

pull/3394/head
Jason Ish 7 years ago
parent e9ae62ed05
commit 9fc1250ca8

@ -1654,13 +1654,9 @@ void AppLayerProtoDetectRegisterProtocol(AppProto alproto, const char *alproto_n
{
SCEnter();
if (alpd_ctx.alproto_names[alproto] != NULL)
goto end;
alpd_ctx.alproto_names[alproto] = alproto_name;
if (alpd_ctx.alproto_names[alproto] == NULL)
alpd_ctx.alproto_names[alproto] = alproto_name;
goto end;
end:
SCReturn;
}

Loading…
Cancel
Save