diff options
author | PaddyDeng <v-paddydeng@microsoft.com> | 2025-05-09 14:14:26 +0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2025-05-26 05:45:37 +0000 |
commit | 93aeaa0812b75abb8637ec1a8f9883657f818a22 (patch) | |
tree | 06a83fafd32aaf96763a99cca3c0ccb54e040c43 /BaseTools/Source/Python | |
parent | c04c2514afc13ce5fcacabfdac8d058385d08d9e (diff) | |
download | edk2-93aeaa0812b75abb8637ec1a8f9883657f818a22.zip edk2-93aeaa0812b75abb8637ec1a8f9883657f818a22.tar.gz edk2-93aeaa0812b75abb8637ec1a8f9883657f818a22.tar.bz2 |
MdeModulePkg/Spi: Allow NULL WriteBuffer in FillWriteBuffer()
Fix false positive assert added in #10924
Functon `FillWriteBuffer()` should able to accept NULL WriteBuffer when
WriteBytes equals 0.
Use case:
```
// Read Status register
TransactionBufferLength = FillWriteBuffer (
Instance,
SPI_FLASH_RDSR,
SPI_FLASH_RDSR_DUMMY,
SPI_FLASH_RDSR_ADDR_BYTES,
FALSE,
0,
0, // WriteBytes = 0
NULL // WriteBuffer can be NULL
);
```
Signed-off-by: Paddy Deng <v-paddydeng@microsoft.com>
Diffstat (limited to 'BaseTools/Source/Python')
0 files changed, 0 insertions, 0 deletions