From b364390d9fb0c4bca23585cfae83a3e0726d16cf Mon Sep 17 00:00:00 2001 From: Ye Li Date: Thu, 27 May 2021 00:59:06 -0700 Subject: [PATCH] LFU-145 imx8qxp_val: Fix uninitialized gpio variable Fix coverity Issue: 13562326 Uninitialized scalar variable The flags field of struct gpio_desc is not initialized. When calling dm_gpio_set_dir_flags, the flags field will be used. Signed-off-by: Ye Li Reviewed-by: Peng Fan --- board/freescale/imx8qxp_val/imx8qxp_val.c | 1 + 1 file changed, 1 insertion(+) diff --git a/board/freescale/imx8qxp_val/imx8qxp_val.c b/board/freescale/imx8qxp_val/imx8qxp_val.c index dc4afa86b0..b747fed50c 100644 --- a/board/freescale/imx8qxp_val/imx8qxp_val.c +++ b/board/freescale/imx8qxp_val/imx8qxp_val.c @@ -338,6 +338,7 @@ static void board_gpio_init(void) desc.dev = dev; desc.offset = 19; + desc.flags = 0; ret = dm_gpio_request(&desc, "ioexp_rst"); if (ret) { -- 2.17.1