Commit 026360c2db5fc510bdbe7600f444d9cf84cde8a3

Authored by Luo Ji
Committed by Ji Luo
1 parent c76785f611

MA-14322 [coverity] Uninitialized scalar variable

Fix coverity issue: CID 1477258: Uninitialized scalar variable (UNINIT)
uninit_use_in_call: Using uninitialized value txbuf when calling __fswab32.

Test: Coverity scan pass.

Change-Id: If57f70c272ef49a6636a59ae3b5dcc5430fd1753
Signed-off-by: Luo Ji <ji.luo@nxp.com>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/spi/fsl_fspi.c
... ... @@ -924,7 +924,7 @@
924 924 {
925 925 u32 bytes = DIV_ROUND_UP(bitlen, 8);
926 926 static u32 wr_sfaddr;
927   - u32 txbuf;
  927 + u32 txbuf = 0;
928 928  
929 929 if (dout) {
930 930 if (flags & SPI_XFER_BEGIN) {