From: Dan Carpenter Date: Fri, 21 Aug 2015 11:25:34 +0000 (+0300) Subject: ALSA: hdsp: silence and underflow warning X-Git-Tag: omap-for-v4.3/fixes-rc1~91^2~30 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e46aedab389122948144713ee5b8bae2658fb1b;p=pandora-kernel.git ALSA: hdsp: silence and underflow warning I believe this probably cannot happen, as the code suggests. There would have to be an kcontrol->index.id which was zero, otherwise this would be prevented in snd_ctl_find_id(). But snd_BUG_ON() is just a WARN() or a no-op so static checkers complain that we keep on going with a negative offset. Let's just handle the error as well as printing a warning. Signed-off-by: Dan Carpenter Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed