Message ID | 20181031193143.6994-1-colin.king@canonical.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 6b27e27729270a2478fdebea2db9c4f57bb4e8e6 |
Headers | show |
Series | ASoC: stm32: sai: fix less than zero comparison on unsigned int | expand |
diff --git a/sound/soc/stm/stm32_sai_sub.c b/sound/soc/stm/stm32_sai_sub.c index 211589b0b2ef..d4825700b63f 100644 --- a/sound/soc/stm/stm32_sai_sub.c +++ b/sound/soc/stm/stm32_sai_sub.c @@ -336,8 +336,7 @@ static int stm32_sai_mclk_set_rate(struct clk_hw *hw, unsigned long rate, { struct stm32_sai_mclk_data *mclk = to_mclk_data(hw); struct stm32_sai_sub_data *sai = mclk->sai_data; - unsigned int div; - int ret; + int div, ret; div = stm32_sai_get_clk_div(sai, parent_rate, rate); if (div < 0)