]> git.proxmox.com Git - mirror_qemu.git/commit
scsi-disk: add 'fall through' comment to switch VERIFY cases
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 16 Jan 2017 18:46:00 +0000 (18:46 +0000)
committerMichael Tokarev <mjt@tls.msk.ru>
Tue, 24 Jan 2017 20:26:53 +0000 (23:26 +0300)
commit4f04560ba93f179151d90b0e6c6c53235fe1a279
tree072d777c54d7bc5781b33487f43a8572792ba11a
parent87eb2bac6a54c74e9e0bfcb69cf8e93727af04f9
scsi-disk: add 'fall through' comment to switch VERIFY cases

Commit 166dbda7e131 added some extra cases to a switch() such
that the existing code is intended to fall through the new
case statements. It's clear from the commit that this is
intentional, but less clear to subsequent readers of the
code, and not clear at all to static analysis tools like
Coverity. Add a /* fall through */ comment to indicate the
intent. (Fixes CID 1368287.)

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/scsi/scsi-disk.c