svn commit: r271183 - head/sys/kern

Mateusz Guzik mjg at FreeBSD.org
Fri Sep 5 23:56:26 UTC 2014


Author: mjg
Date: Fri Sep  5 23:56:25 2014
New Revision: 271183
URL: http://svnweb.freebsd.org/changeset/base/271183

Log:
  Plug unnecessary fp assignments in kern_fcntl.
  
  No functional changes.

Modified:
  head/sys/kern/kern_descrip.c

Modified: head/sys/kern/kern_descrip.c
==============================================================================
--- head/sys/kern/kern_descrip.c	Fri Sep  5 19:50:18 2014	(r271182)
+++ head/sys/kern/kern_descrip.c	Fri Sep  5 23:56:25 2014	(r271183)
@@ -509,7 +509,7 @@ kern_fcntl(struct thread *td, int fd, in
 
 	case F_GETFD:
 		FILEDESC_SLOCK(fdp);
-		if ((fp = fget_locked(fdp, fd)) == NULL) {
+		if (fget_locked(fdp, fd) == NULL) {
 			FILEDESC_SUNLOCK(fdp);
 			error = EBADF;
 			break;
@@ -522,7 +522,7 @@ kern_fcntl(struct thread *td, int fd, in
 
 	case F_SETFD:
 		FILEDESC_XLOCK(fdp);
-		if ((fp = fget_locked(fdp, fd)) == NULL) {
+		if (fget_locked(fdp, fd) == NULL) {
 			FILEDESC_XUNLOCK(fdp);
 			error = EBADF;
 			break;


More information about the svn-src-all mailing list