cvs commit: src/sys/net if.c
Brooks Davis
brooks at FreeBSD.org
Tue Jan 27 11:35:22 PST 2004
brooks 2004/01/27 11:35:05 PST
FreeBSD src repository
Modified files:
sys/net if.c
Log:
Cleanup malloc() use in if_attach():
- malloc() returns a void* and does not need a cast
- when called with M_WAITOK, malloc() can not return NULL so don't
check for that case. The result of the check was bogus anyway since
it would leave the interface broken.
Revision Changes Path
1.177 +20 -22 src/sys/net/if.c
More information about the cvs-src
mailing list