Searched hist:"2658594 f" (Results 1 – 1 of 1) sorted by relevance
/qemu/hw/block/ |
H A D | pflash_cfi02.c | 2658594f Thu Jul 11 12:52:46 GMT 2019 Philippe Mathieu-Daudé <philmd@redhat.com> hw/block/pflash_cfi02: Explicit switch fallthrough for ERASE commands
Previous to commit ddb6f2254, the DQ2 bit was incorrectly set during PROGRAM command (0xA0). The commit reordered the switch cases to only set the DQ2 bit for the ERASE commands using a fallthrough, but did not explicit the fallthrough is intentional.
Mark the switch fallthrough with a comment interpretable by C preprocessors and static analysis tools.
Reported-by: Coverity (CID 1403012) Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Message-Id: <20190711130759.27720-1-philmd@redhat.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
|