Remove a useless if (x != NULL) check before calling free on allocated_uaddr

MFC after: 3 days
Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
Enji Cooper 2016-05-29 06:01:18 +00:00
parent b07f123b60
commit 3f78f0a950
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=300942

View File

@ -219,8 +219,7 @@ mergeaddr(SVCXPRT *xprt, char *netid, char *uaddr, char *saddr)
fprintf(stderr, "mergeaddr: uaddr = %s, merged uaddr = %s\n",
uaddr, m_uaddr);
#endif
if (allocated_uaddr != NULL)
free(allocated_uaddr);
free(allocated_uaddr);
return (m_uaddr);
}