Date: Sun, 5 Feb 2006 17:47:26 +0000 (UTC) From: Alexander Leidinger <netchild@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/dev/sound/usb uaudio.c src/sys/dev/sound/pcm sound.c Message-ID: <200602051747.k15HlRfa058124@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
netchild 2006-02-05 17:47:26 UTC FreeBSD src repository Modified files: sys/dev/sound/usb uaudio.c sys/dev/sound/pcm sound.c Log: Convert NULL checks into KASSERT (and move them before the first dereferencing) since a NULL value would be a bug here. Note: Both affected functions look very similar. A refactoring may be beneficial. CID: 483, 485 Found with: Coverity Prevent(tm) Discussed with: ariff MFC after: 5 days Revision Changes Path 1.98 +20 -18 src/sys/dev/sound/pcm/sound.c 1.20 +11 -10 src/sys/dev/sound/usb/uaudio.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200602051747.k15HlRfa058124>