Skip to content

Commit

Permalink
LFU-753-3 video: imx93-parallel-disp-fmt: Fix uninitialized variable
Browse files Browse the repository at this point in the history
The bus_format variable is not initialized, in case the fmt property
is not set, it will cause problem to following codes.
Fix coverity issue 37938122.

Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
  • Loading branch information
Ye Li committed Jun 6, 2024
1 parent 83652aa commit 674440b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/video/nxp/imx/imx93-parallel-disp-fmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ static int imx93_pdf_probe(struct udevice *dev)
{
struct imx93_pdf_priv *priv = dev_get_priv(dev);
const char *fmt;
u32 bus_format;
u32 bus_format = 0;
int ret;

priv->addr = (void __iomem *)dev_read_addr(dev_get_parent(dev));
Expand Down

0 comments on commit 674440b

Please sign in to comment.