Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Jun 2013 18:32:47 +0000 (UTC)
From:      Mateusz Guzik <mjg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r252351 - head/sys/kern
Message-ID:  <201306281832.r5SIWllO052380@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mjg
Date: Fri Jun 28 18:32:46 2013
New Revision: 252351
URL: http://svnweb.freebsd.org/changeset/base/252351

Log:
  Remove duplicate NULL check in kern_proc_filedesc_out.
  No functional changes.
  
  MFC after:	1 week

Modified:
  head/sys/kern/kern_descrip.c

Modified: head/sys/kern/kern_descrip.c
==============================================================================
--- head/sys/kern/kern_descrip.c	Fri Jun 28 18:25:04 2013	(r252350)
+++ head/sys/kern/kern_descrip.c	Fri Jun 28 18:32:46 2013	(r252351)
@@ -3446,9 +3446,8 @@ kern_proc_filedesc_out(struct proc *p,  
 			break;
 	}
 	FILEDESC_SUNLOCK(fdp);
+	fddrop(fdp);
 fail:
-	if (fdp != NULL)
-		fddrop(fdp);
 	free(efbuf, M_TEMP);
 	return (error);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201306281832.r5SIWllO052380>