Skip to content

Commit

Permalink
ALSA: usb-audio: Fix unsigned expression compared with zero
Browse files Browse the repository at this point in the history
Fix unsigned expression compared with zero

Signed-off-by: Zhongjun Tan <tanzhongjun@coolpad.com>
  • Loading branch information
Zhongjun Tan authored and intel-lab-lkp committed Jul 6, 2022
1 parent 61c606a commit 10d09dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sound/usb/pcm.c
Expand Up @@ -766,8 +766,8 @@ static int hw_rule_rate(struct snd_pcm_hw_params *params,
struct snd_usb_audio *chip = subs->stream->chip;
const struct audioformat *fp;
struct snd_interval *it = hw_param_interval(params, SNDRV_PCM_HW_PARAM_RATE);
unsigned int rmin, rmax, r;
int i;
unsigned int rmin, rmax;
int i, r;

hwc_debug("hw_rule_rate: (%d,%d)\n", it->min, it->max);
rmin = UINT_MAX;
Expand Down

0 comments on commit 10d09dc

Please sign in to comment.