ALSA: hda - use WARN_ON_ONCE() for zero-division detection
authorTakashi Iwai <tiwai@suse.de>
Fri, 12 Feb 2010 17:17:06 +0000 (18:17 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 23 Feb 2010 15:37:55 +0000 (07:37 -0800)
commit1393ad25685ec7f91137160dc482e7bb00cb27d2
tree1e1ac20bd8342df76bc26e66ec660e1381929d85
parent473e685ee12ccd50d626b58c455dde6bbb51df61
ALSA: hda - use WARN_ON_ONCE() for zero-division detection

commit d6d8bf549393484e906913f02fa3c9518a2819b6 upstream.

Replace the zero-division warning message with WARN_ON_ONCE() per the
advice by Linus.  This shouldn't happen, but if it happens, it's
possible that the bug happens often due to buggy IRQs.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
sound/pci/hda/hda_intel.c