diff options
| author | Peter Maydell | 2016-06-10 17:00:36 +0200 |
|---|---|---|
| committer | Paolo Bonzini | 2016-06-16 18:39:04 +0200 |
| commit | 773dce3c7286a66c37f7b07994177faf7046bfa8 (patch) | |
| tree | 154ca1ab8e3f73b6a1bdfae3eb622783c5b849f8 /scripts | |
| parent | configure: Remove unused CONFIG_SIGEV_THREAD_ID switch (diff) | |
| download | qemu-773dce3c7286a66c37f7b07994177faf7046bfa8.tar.gz qemu-773dce3c7286a66c37f7b07994177faf7046bfa8.tar.xz qemu-773dce3c7286a66c37f7b07994177faf7046bfa8.zip | |
nbd: Don't use *_to_cpup() functions
The *_to_cpup() functions are not very useful, as they simply do
a pointer dereference and then a *_to_cpu(). Instead use either:
* ld*_*_p(), if the data is at an address that might not be
correctly aligned for the load
* a local dereference and *_to_cpu(), if the pointer is
the correct type and known to be correctly aligned
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-Id: <1465570836-22211-1-git-send-email-peter.maydell@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
