]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: oxfw: fix detect_loud_models() return value
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 12 Dec 2014 19:28:10 +0000 (22:28 +0300)
committerTakashi Iwai <tiwai@suse.de>
Sun, 14 Dec 2014 15:04:50 +0000 (16:04 +0100)
commit53b54e0cdea01f259f585a5b1a6c96ce3b7554b1
treed876b22571cf2dfa00d67a2a40af55e69888dfa2
parent524bf5801295f2187ef58e53ff92f22649108af2
ALSA: oxfw: fix detect_loud_models() return value

This code causes a static checker warning:

sound/firewire/oxfw/oxfw.c:46 detect_loud_models()
warn: signedness bug returning '(-2)'

The detect_loud_models() function should return false on falure, so that
we don't try to set up the loud code for hardware that doesn't support
it.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/firewire/oxfw/oxfw.c