From d41112fbcc6e60ac0a4e76f33ee90b17475b2402 Mon Sep 17 00:00:00 2001 From: Neels Janosch Hofmeyr Date: Thu, 26 Jan 2023 13:25:50 +0100 Subject: [PATCH] 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 --- src/osmo-hnbgw/hnbgw_rua.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/osmo-hnbgw/hnbgw_rua.c b/src/osmo-hnbgw/hnbgw_rua.c index 215379a..2757073 100644 --- a/src/osmo-hnbgw/hnbgw_rua.c +++ b/src/osmo-hnbgw/hnbgw_rua.c @@ -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; break; case OSMO_SCU_PRIM_N_UNITDATA: prim->u.unitdata.called_addr = *remote_addr;