Date: Tue, 27 Jan 2004 11:35:05 -0800 (PST) From: Brooks Davis <brooks@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/net if.c Message-ID: <200401271935.i0RJZ5Dr080810@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200401271935.i0RJZ5Dr080810>