aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2018-03-29 05:03:19 -0400
committerTakashi Iwai <tiwai@suse.de>2018-03-29 05:08:04 -0400
commitb44d419b98fae759b4f746186b1d1c8d01d962f2 (patch)
tree5cdfda6bf3c74e317e73046934c605b5a7b14acb
parent623760257b39632ffc5051fc88167b546dcfa791 (diff)
ALSA: usb-audio: silence a static checker warning
We recently made "format" a u64 variable so now static checkers complain that this shift will wrap around if format is more than 31. I don't think it makes a difference for runtime, but it's simple to silence the warning. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r--sound/usb/format.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/usb/format.c b/sound/usb/format.c
index edbe67eeddfa..49e7ec6d2399 100644
--- a/sound/usb/format.c
+++ b/sound/usb/format.c
@@ -55,7 +55,7 @@ static u64 parse_audio_format_i_type(struct snd_usb_audio *chip,
55 struct uac_format_type_i_discrete_descriptor *fmt = _fmt; 55 struct uac_format_type_i_discrete_descriptor *fmt = _fmt;
56 sample_width = fmt->bBitResolution; 56 sample_width = fmt->bBitResolution;
57 sample_bytes = fmt->bSubframeSize; 57 sample_bytes = fmt->bSubframeSize;
58 format = 1 << format; 58 format = 1ULL << format;
59 break; 59 break;
60 } 60 }
61 61