network/ns-mcast_receiver.c: remove explicit NULL check before free
PATCH 6/8 network/ns-mcast_receiver.c: remove explicit NULL check before free
No need of NULL check before free
Signed-off-by Maninder Singh <[email protected]>
Signed-off-by Akhilesh Kumar <[email protected]>
--- .../network/stress/ns-tools/ns-mcast_receiver.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-)
testcases/network/stress/ns-tools/ns-mcast_receiver.c +3 -6
@@ -282,12 +282,9 @@ parse_options(int argc, char *argv[], struct mcast_rcv_info *info_p, int *bg_p) saddrs); } -if (maddr) -free (maddr); -if (saddrs) -free (saddrs); -if (portnum) -free (portnum); +free (maddr); +free (saddrs); +free (portnum); }/*
Signature · 6 lines
1.7.9.5 ------------------------------------------------------------------------------ _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list