|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen master] x86/bitops: drop redundant casts from find_next{,_zero}_bit()
commit 5eb84d6c992cf4e81936872c441b649057947442
Author: Jan Beulich <jbeulich@xxxxxxxx>
AuthorDate: Mon Feb 23 08:43:46 2026 +0100
Commit: Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Mon Feb 23 08:43:46 2026 +0100
x86/bitops: drop redundant casts from find_next{,_zero}_bit()
It's not clear why they were put in place - a__ is of the very type
already.
No change in generated code.
Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
Acked-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
---
xen/arch/x86/include/asm/bitops.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/xen/arch/x86/include/asm/bitops.h
b/xen/arch/x86/include/asm/bitops.h
index b17d67e8ca..69ffed510c 100644
--- a/xen/arch/x86/include/asm/bitops.h
+++ b/xen/arch/x86/include/asm/bitops.h
@@ -343,7 +343,7 @@ static always_inline unsigned int __scanbit(unsigned long
val, unsigned int max)
if ( o__ >= s__ ) \
r__ = s__; \
else if ( __builtin_constant_p(size) && s__ <= BITS_PER_LONG ) \
- r__ = o__ + __scanbit(*(const unsigned long *)(a__) >> o__, s__); \
+ r__ = o__ + __scanbit(*a__ >> o__, s__); \
else if ( __builtin_constant_p(off) && !o__ ) \
r__ = __find_first_bit(a__, s__); \
else \
@@ -375,7 +375,7 @@ static always_inline unsigned int __scanbit(unsigned long
val, unsigned int max)
if ( o__ >= s__ ) \
r__ = s__; \
else if ( __builtin_constant_p(size) && s__ <= BITS_PER_LONG ) \
- r__ = o__ + __scanbit(~*(const unsigned long *)(a__) >> o__, s__); \
+ r__ = o__ + __scanbit(~*a__ >> o__, s__); \
else if ( __builtin_constant_p(off) && !o__ ) \
r__ = __find_first_zero_bit(a__, s__); \
else \
--
generated by git-patchbot for /home/xen/git/xen.git#master
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |