Message ID | 20241108-coverity1511468wrongoperator-v2-1-72bc73d8691f@gmail.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | [v2] drm:sprd: Correct left shift operator evaluating constant expression | expand |
diff --git a/drivers/gpu/drm/sprd/megacores_pll.c b/drivers/gpu/drm/sprd/megacores_pll.c index 3091dfdc11e3..43c10a5fc441 100644 --- a/drivers/gpu/drm/sprd/megacores_pll.c +++ b/drivers/gpu/drm/sprd/megacores_pll.c @@ -94,7 +94,7 @@ static void dphy_set_pll_reg(struct dphy_pll *pll, struct regmap *regmap) reg_val[3] = pll->vco_band | (pll->sdm_en << 1) | (pll->refin << 2); reg_val[4] = pll->kint >> 12; reg_val[5] = pll->kint >> 4; - reg_val[6] = pll->out_sel | ((pll->kint << 4) & 0xf); + reg_val[6] = pll->out_sel | ((pll->kint >> 4) & 0xf); reg_val[7] = 1 << 4; reg_val[8] = pll->det_delay;