Commits
Cristina Ciocan committed 25c42567af5
MLK-15027: arm: pxp: Fix uninitialized use of variables This patch fixes build warning that 2 variables may be used uninitialized in the pxp_fetch_config() function in drivers/dma/pxp/pxp_dma_v3.c . The variables in_fmt and out_fmt are passed as parameters to pxp_fetch_shift_calc() only if shift_bypass is false. This flag cannot be false unless changed in a code block that also assigns in_fmt and out_fmt. Since the compiler cannot detect this flow, it shows a warning that in_fmt and out_fmt are not initialized. Fix this by changing the code flow such that in_fmt and out_fmt are sent as parameters in the same code block where they are assigned. Signed-off-by: Cristina Ciocan <cristina-mihaela.ciocan@nxp.com> (cherry picked from commit e710b061ef292402045b30ccb56bcdcd343d43c5)