summaryrefslogtreecommitdiffstats
path: root/include/block
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé2020-09-22 10:38:19 +0200
committerStefan Hajnoczi2020-10-05 10:35:52 +0200
commit9406e0d97ec1923b261b40f11667145fb29e89de (patch)
tree874c28151bc897aa9e0599f585b84ae71be8df3a /include/block
parentblock/nvme: Reduce I/O registers scope (diff)
downloadqemu-9406e0d97ec1923b261b40f11667145fb29e89de.tar.gz
qemu-9406e0d97ec1923b261b40f11667145fb29e89de.tar.xz
qemu-9406e0d97ec1923b261b40f11667145fb29e89de.zip
block/nvme: Drop NVMeRegs structure, directly use NvmeBar
NVMeRegs only contains NvmeBar. Simplify the code by using NvmeBar directly. This triggers a checkpatch.pl error: ERROR: Use of volatile is usually wrong, please add a comment #30: FILE: block/nvme.c:691: + volatile NvmeBar *regs; This is a false positive as in our case we are using I/O registers, so the 'volatile' use is justified. Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Message-Id: <20200922083821.578519-5-philmd@redhat.com>
Diffstat (limited to 'include/block')
0 files changed, 0 insertions, 0 deletions