diff options
| author | Peter Maydell | 2016-06-10 18:15:42 +0200 |
|---|---|---|
| committer | Paolo Bonzini | 2016-06-16 18:39:04 +0200 |
| commit | f6be6720847f370000312808e6fed5d4e9730934 (patch) | |
| tree | 71bf4c2f74e59ff88914e98b605a5f4252b3ed37 /include | |
| parent | nbd: Don't use *_to_cpup() functions (diff) | |
| download | qemu-f6be6720847f370000312808e6fed5d4e9730934.tar.gz qemu-f6be6720847f370000312808e6fed5d4e9730934.tar.xz qemu-f6be6720847f370000312808e6fed5d4e9730934.zip | |
nbd: Don't use cpu_to_*w() functions
The cpu_to_*w() functions just compose a pointer dereference
with a byteswap. Instead use st*_p(), which handles potential
pointer misalignment and avoids the need to cast the pointer.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-Id: <1465575342-12146-1-git-send-email-peter.maydell@linaro.org>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
