Skip to content

Commit

Permalink
[PATCH] s390: remove one set of brackets in __constant_test_bit()
Browse files Browse the repository at this point in the history
Right now in __constant_test_bit for the s390 there is an extra set of ()
surrounding the calculation.  This patch simply removes one set of () that is
surrounding the whole clause.

Signed-off-by: Eric Paris <eparis@redhat.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Eric Paris authored and Linus Torvalds committed Feb 12, 2006
1 parent 0defa3c commit ef1bea9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/asm-s390/bitops.h
Original file line number Diff line number Diff line change
Expand Up @@ -518,8 +518,8 @@ static inline int __test_bit(unsigned long nr, const volatile unsigned long *ptr

static inline int
__constant_test_bit(unsigned long nr, const volatile unsigned long *addr) {
return ((((volatile char *) addr)
[(nr^(__BITOPS_WORDSIZE-8))>>3] & (1<<(nr&7)))) != 0;
return (((volatile char *) addr)
[(nr^(__BITOPS_WORDSIZE-8))>>3] & (1<<(nr&7))) != 0;
}

#define test_bit(nr,addr) \
Expand Down

0 comments on commit ef1bea9

Please sign in to comment.