Skip to content

Commit

Permalink
ALSA: usb-audio - Fix types taken in min()
Browse files Browse the repository at this point in the history
Fix the compile warning due to different integer types used in min():
  sound/usb/usbaudio.c: In function 'init_substream_urbs':
  sound/usb/usbaudio.c:1087: warning: comparison of distinct pointer types lacks a cast

Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Takashi Iwai committed Aug 11, 2009
1 parent 765e8db commit f1e6d3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/usb/usbaudio.c
Original file line number Diff line number Diff line change
Expand Up @@ -1084,7 +1084,7 @@ static int init_substream_urbs(struct snd_usb_substream *subs, unsigned int peri
urb_packs = 1;
urb_packs *= packs_per_ms;
if (subs->syncpipe)
urb_packs = min(urb_packs, 1 << subs->syncinterval);
urb_packs = min(urb_packs, 1U << subs->syncinterval);

/* decide how many packets to be used */
if (is_playback) {
Expand Down

0 comments on commit f1e6d3c

Please sign in to comment.