Просмотр исходного кода

parisc: fix mismatched parenthesis in memcpy.c

>>>> 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 <roel.kluin@gmail.com>
Signed-off-by: Randolph Chung <tausq@parisc-linux.org>
Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>
Randolph Chung 16 лет назад
Родитель
Сommit
87451d850c
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      arch/parisc/lib/memcpy.c

+ 1 - 1
arch/parisc/lib/memcpy.c

@@ -405,7 +405,7 @@ byte_copy:
 
 
 unaligned_copy:
 unaligned_copy:
 	/* possibly we are aligned on a word, but not on a double... */
 	/* 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);
 		t2 = src & (sizeof(unsigned int) - 1);
 
 
 		if (unlikely(t2 != 0)) {
 		if (unlikely(t2 != 0)) {