diff options
| author | Peter Maydell <peter.maydell@linaro.org> | 2016-06-10 17:15:42 +0100 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2016-06-16 18:39:04 +0200 |
| commit | f6be6720847f370000312808e6fed5d4e9730934 (patch) | |
| tree | 71bf4c2f74e59ff88914e98b605a5f4252b3ed37 /hw/timer/lm32_timer.c | |
| parent | 773dce3c7286a66c37f7b07994177faf7046bfa8 (diff) | |
| download | focaccia-qemu-f6be6720847f370000312808e6fed5d4e9730934.tar.gz focaccia-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 'hw/timer/lm32_timer.c')
0 files changed, 0 insertions, 0 deletions