ALSA: hwdep: prevent a harmless shift wrapping bug
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 13 Sep 2017 23:01:16 +0000 (02:01 +0300)
committerTakashi Iwai <tiwai@suse.de>
Mon, 18 Sep 2017 13:42:00 +0000 (15:42 +0200)
commitc4fd43793bdecb986bfc80e00c8792556c3f1c7f
treee849b0888399fef03c76faeff5c1af13227f5900
parent2bd6bf03f4c1c59381d62c61d03f6cc3fe71f66e
ALSA: hwdep: prevent a harmless shift wrapping bug

The "info.index" variable represents a bit in hw->dsp_loaded which is
an unsigned int.  If it's higher than 31 we hit a shift wrapping bug.
This seems harmless, but I wanted to silence the static checker warning.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/hwdep.c