Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/bridge: imx93-mipi-dsi: Fix a couple of building warnings

Fix a couple of building warnings on used uninitialized 'best_m' and
'best_n' local variables by initializing 'best_m' to zero and 'best_n'
to UINT_MAX. This makes compiler happy only. No functional change.

Fixes: ce62f8ea7e3f ("drm/bridge: imx: Add i.MX93 MIPI DSI support")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202311151746.f7u7dzbZ-lkp@intel.com/
Signed-off-by: Liu Ying <victor.liu@nxp.com>
Reviewed-by: Robert Foss <rfoss@kernel.org>
Signed-off-by: Robert Foss <rfoss@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20231123051807.3818342-1-victor.liu@nxp.com

authored by

Liu Ying and committed by
Robert Foss
325b71e8 288b039d

+2 -2
+2 -2
drivers/gpu/drm/bridge/imx/imx93-mipi-dsi.c
··· 226 226 unsigned long fout; 227 227 unsigned long best_fout = 0; 228 228 unsigned int fvco_div; 229 - unsigned int min_n, max_n, n, best_n; 230 - unsigned long m, best_m; 229 + unsigned int min_n, max_n, n, best_n = UINT_MAX; 230 + unsigned long m, best_m = 0; 231 231 unsigned long min_delta = ULONG_MAX; 232 232 unsigned long delta; 233 233 u64 tmp;