libmsc/msc_vty.c: drop dead comparison against null
Since vsub->sgs.mme_name is allocated statically, comparing it to null doesn't make sense - it's always != NULL. Change-Id: Ib2933a20471ebff9dfe1d9fdddf39d177504c951 Fixes: CID#178166 Array compared against 0 (NO_EFFECT)
This commit is contained in:
parent
4d75877e61
commit
477cbc6d93
|
@ -749,7 +749,7 @@ static void subscr_dump_full_vty(struct vty *vty, struct vlr_subscr *vsub)
|
|||
/* SGs related */
|
||||
vty_out(vty, " SGs-state: %s%s",
|
||||
osmo_fsm_inst_state_name(vsub->sgs_fsm), VTY_NEWLINE);
|
||||
if (vsub->sgs.mme_name && strlen(vsub->sgs.mme_name))
|
||||
if (strlen(vsub->sgs.mme_name))
|
||||
vty_out(vty, " SGs-MME: %s%s", vsub->sgs.mme_name, VTY_NEWLINE);
|
||||
else
|
||||
vty_out(vty, " SGs-MME: (none)%s", VTY_NEWLINE);
|
||||
|
|
Loading…
Reference in New Issue