coverity: hnbgw_rua.c: remove redundant check

'map' is already guaranteed to be not NULL for that message type by the
preceding switch().

Related: CID#307434
Change-Id: Id30f459616391187aa2f8ad400c316e2144154c6
This commit is contained in:
Neels Hofmeyr 2023-01-26 13:25:50 +01:00
parent 87ecf69b55
commit d41112fbcc
1 changed files with 1 additions and 2 deletions

View File

@ -253,8 +253,7 @@ int rua_to_scu(struct hnb_context *hnb,
prim->u.disconnect.cause = cause;
release_context_map = true;
/* Mark SCCP conn as gracefully disconnected */
if (map)
map->scu_conn_active = false;
map->scu_conn_active = false;
prim->u.unitdata.called_addr = *remote_addr;