diff options
author | Andy Lutomirski <luto@kernel.org> | 2017-02-20 08:56:12 -0800 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2017-02-21 11:48:56 +0100 |
commit | 8c2e41f7ae1234c192ef497472ad306227c77c03 (patch) | |
tree | 4960eb70e39c81d6e23fb5c413315235dd339d1e /fs/ntfs/logfile.h | |
parent | e28baeadcf0d657c6b6e849ae1b4faccb4faf326 (diff) |
x86/kvm/vmx: Simplify segment_base()
Use actual pointer types for pointers (instead of unsigned long) and
replace hardcoded constants with the appropriate self-documenting
macros.
The function is still a bit messy, but this seems a lot better than
before to me.
This is mostly borrowed from a patch by Thomas Garnier.
Cc: Thomas Garnier <thgarnie@google.com>
Cc: Jim Mattson <jmattson@google.com>
Cc: Radim Krčmář <rkrcmar@redhat.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Andy Lutomirski <luto@kernel.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'fs/ntfs/logfile.h')
0 files changed, 0 insertions, 0 deletions