parisc: fix mismatched parenthesis in memcpy.c
authorRandolph Chung <[email protected]>
Tue, 23 Jun 2009 14:53:26 +0000 (14:53 +0000)
committerKyle McMartin <[email protected]>
Fri, 3 Jul 2009 03:34:09 +0000 (03:34 +0000)
>>>> I think this is what was intended? Note that this patch may affect
>>>> profiling.
>>> it really should be
>>>
>>> -    if (likely(t1 & (sizeof(unsigned int)-1)) == 0) {
>>> +    if (likely((t1 & (sizeof(unsigned int)-1)) == 0)) {
>>>
>>> randolph

Reported-by: Roel Kluin <[email protected]>
Signed-off-by: Randolph Chung <[email protected]>
Signed-off-by: Kyle McMartin <[email protected]>
arch/parisc/lib/memcpy.c

index bbda909c866e57c1327b6ccd47cf9bab8dc992d4..abf41f4632a9fca1b8df2c4ba963c2e328e553e7 100644 (file)
@@ -405,7 +405,7 @@ byte_copy:
 
 unaligned_copy:
        /* possibly we are aligned on a word, but not on a double... */
-       if (likely(t1 & (sizeof(unsigned int)-1)) == 0) {
+       if (likely((t1 & (sizeof(unsigned int)-1)) == 0)) {
                t2 = src & (sizeof(unsigned int) - 1);
 
                if (unlikely(t2 != 0)) {