svn commit: r247284 - head/sys/kern
Pawel Jakub Dawidek
pjd at FreeBSD.org
Mon Feb 25 20:51:30 UTC 2013
Author: pjd
Date: Mon Feb 25 20:51:29 2013
New Revision: 247284
URL: http://svnweb.freebsd.org/changeset/base/247284
Log:
Style.
Suggested by: kib
Modified:
head/sys/kern/kern_descrip.c
Modified: head/sys/kern/kern_descrip.c
==============================================================================
--- head/sys/kern/kern_descrip.c Mon Feb 25 20:50:08 2013 (r247283)
+++ head/sys/kern/kern_descrip.c Mon Feb 25 20:51:29 2013 (r247284)
@@ -1425,8 +1425,7 @@ fdgrowtable(struct filedesc *fdp, int nf
FILEDESC_XLOCK_ASSERT(fdp);
- KASSERT(fdp->fd_nfiles > 0,
- ("zero-length file table"));
+ KASSERT(fdp->fd_nfiles > 0, ("zero-length file table"));
/* save old values */
onfiles = fdp->fd_nfiles;
@@ -1447,13 +1446,11 @@ fdgrowtable(struct filedesc *fdp, int nf
* it on the freelist. We place the struct freetable in the
* middle so we don't have to worry about padding.
*/
- ntable = malloc(nnfiles * sizeof(*ntable) +
- sizeof(struct freetable) +
- nnfiles * sizeof(*nfileflags),
- M_FILEDESC, M_ZERO | M_WAITOK);
+ ntable = malloc(nnfiles * sizeof(*ntable) + sizeof(struct freetable) +
+ nnfiles * sizeof(*nfileflags), M_FILEDESC, M_ZERO | M_WAITOK);
nfileflags = (char *)&ntable[nnfiles] + sizeof(struct freetable);
- nmap = malloc(NDSLOTS(nnfiles) * NDSLOTSIZE,
- M_FILEDESC, M_ZERO | M_WAITOK);
+ nmap = malloc(NDSLOTS(nnfiles) * NDSLOTSIZE, M_FILEDESC,
+ M_ZERO | M_WAITOK);
/* copy the old data over and point at the new tables */
memcpy(ntable, otable, onfiles * sizeof(*otable));
More information about the svn-src-head
mailing list