cvs commit: src/sys/dev/sound/usb uaudio.c src/sys/dev/sound/pcm sound.c

Alexander Leidinger netchild at
Sun Feb 5 09:47:27 PST 2006

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 
  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

More information about the cvs-src mailing list