diff options
| author | Philippe Mathieu-Daudé | 2022-02-01 12:26:54 +0100 |
|---|---|---|
| committer | Kevin Wolf | 2022-02-01 13:49:15 +0100 |
| commit | ac50419460cc45a66214e6d1c3e9d0d670522f8a (patch) | |
| tree | 13f52de96ee1c36f6b1efabb21aba94b1a4742c1 /python/tests/mypy.sh | |
| parent | block/export: Fix vhost-user-blk shutdown with requests in flight (diff) | |
| download | qemu-ac50419460cc45a66214e6d1c3e9d0d670522f8a.tar.gz qemu-ac50419460cc45a66214e6d1c3e9d0d670522f8a.tar.xz qemu-ac50419460cc45a66214e6d1c3e9d0d670522f8a.zip | |
block/export/fuse: Rearrange if-else-if ladder in fuse_fallocate()
In order to safely maintain a mixture of #ifdef'ry with if-else-if
ladder, rearrange the last statement (!mode) first. Since it is
mutually exclusive with the other conditions, checking it first
doesn't make any logical difference, but allows to add #ifdef'ry
around in a more cleanly way.
Suggested-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20220201112655.344373-2-f4bug@amsat.org>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'python/tests/mypy.sh')
0 files changed, 0 insertions, 0 deletions
