From 72e6cdfa2cd95240439c72705ab28a2eebb7d04e Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 19 Mar 2008 06:43:34 +0000 Subject: Remove useless "if" before "free". --- sunrpc/xdr_sizeof.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'sunrpc') diff --git a/sunrpc/xdr_sizeof.c b/sunrpc/xdr_sizeof.c index aaf25e9699..dc3e19ebe3 100644 --- a/sunrpc/xdr_sizeof.c +++ b/sunrpc/xdr_sizeof.c @@ -86,8 +86,7 @@ x_inline (XDR *xdrs, u_int len) else { /* Free the earlier space and allocate new area */ - if (xdrs->x_private) - free (xdrs->x_private); + free (xdrs->x_private); if ((xdrs->x_private = (caddr_t) malloc (len)) == NULL) { xdrs->x_base = 0; @@ -157,7 +156,6 @@ xdr_sizeof (xdrproc_t func, void *data) x.x_base = (caddr_t) 0; stat = func (&x, data); - if (x.x_private) - free (x.x_private); + free (x.x_private); return stat == TRUE ? x.x_handy : 0; } -- cgit v1.2.3