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

media: ccs-pll: Initialise best_div to avoid a compiler warning

Initialise best_div local variable to avoid a compiler warning. The
warning was harmless though.

Reported-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>

authored by

Sakari Ailus and committed by
Mauro Carvalho Chehab
697bef6c 9e2a90d7

+1 -1
+1 -1
drivers/media/i2c/ccs-pll.c
··· 296 296 struct ccs_pll_branch_fr *pll_fr = &pll->vt_fr; 297 297 struct ccs_pll_branch_bk *pll_bk = &pll->vt_bk; 298 298 u32 more_mul; 299 - u16 best_pix_div = SHRT_MAX >> 1, best_div; 299 + u16 best_pix_div = SHRT_MAX >> 1, best_div = lim_bk->max_sys_clk_div; 300 300 u16 vt_div, min_sys_div, max_sys_div, sys_div; 301 301 302 302 pll_fr->pll_ip_clk_freq_hz =