OSDN Git Service

ALSA: hda: Drop useless WARN_ON()
authorTakashi Iwai <tiwai@suse.de>
Fri, 22 Dec 2017 09:45:07 +0000 (10:45 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 22 Dec 2017 09:56:56 +0000 (10:56 +0100)
commita36c2638380c0a4676647a1f553b70b20d3ebce1
tree27f06b3f900466d299e7f40a79a529ec038cf109
parent8da5bbfc7cbba909f4f32d5e1dda3750baa5d853
ALSA: hda: Drop useless WARN_ON()

Since the commit 97cc2ed27e5a ("ALSA: hda - Fix yet another i915
pointer leftover in error path") cleared hdac_acomp pointer, the
WARN_ON() non-NULL check in snd_hdac_i915_register_notifier() may give
a false-positive warning, as the function gets called no matter
whether the component is registered or not.  For fixing it, let's get
rid of the spurious WARN_ON().

Fixes: 97cc2ed27e5a ("ALSA: hda - Fix yet another i915 pointer leftover in error path")
Cc: <stable@vger.kernel.org>
Reported-by: Kouta Okamoto <kouta.okamoto@toshiba.co.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/hda/hdac_i915.c