Browse Source

fix(nxp-drivers): fix fspi coverity issue

Fixed the following coverity issues:
Using uninitialized value cmd_id1, cmd_id2.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
Change-Id: I8cd430ec015fc617521db455a6ffe16b33f42b78
pull/1992/head
Jiafei Pan 3 years ago
parent
commit
5199b3b93c
  1. 3
      drivers/nxp/flexspi/nor/fspi.c

3
drivers/nxp/flexspi/nor/fspi.c

@ -123,6 +123,9 @@ static void fspi_op_setup(uint32_t fspi_op_seq_id, bool ignore_flash_sz)
cmd_id1 = FSPI_NOR_CMD_RDSR;
cmd_id2 = FSPI_NOR_CMD_RDSR;
break;
default:
ERROR("Unsupported command\n");
return;
}
x_addr = FSPI_LUTREG_OFFSET + (uint32_t)(0x10 * fspi_op_seq_id);

Loading…
Cancel
Save