From: Dan Carpenter Date: Thu, 29 Mar 2018 09:03:19 +0000 (+0300) Subject: ALSA: usb-audio: silence a static checker warning X-Git-Tag: v5.15~8973^2~12^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b44d419b98fae759b4f746186b1d1c8d01d962f2;p=platform%2Fkernel%2Flinux-starfive.git 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 Signed-off-by: Takashi Iwai --- diff --git a/sound/usb/format.c b/sound/usb/format.c index edbe67e..49e7ec6 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, struct uac_format_type_i_discrete_descriptor *fmt = _fmt; sample_width = fmt->bBitResolution; sample_bytes = fmt->bSubframeSize; - format = 1 << format; + format = 1ULL << format; break; }