Skip to contentSkip to conversation

IA64: cast has a higher precedence than '?'

PATCH In review Roel Kluin 2 participants 2 messages Feb 20, 2009

lore
Share & tools
lore

Roel Kluin

author
#0 lore raw

PATCH 1/1 IA64: cast has a higher precedence than '?'

A cast has a higher precedence than '?'

---

arch/ia64/include/asm/syscall.h +1 -1
index 2f758a4..3fc1832 100644
@@ -64,7 +64,7 @@ static inline void syscall_set_return_value(struct task_struct *task,
 {
 #ifdef CONFIG_IA32_SUPPORT
 	if (IS_IA32_PROCESS(regs)) {
-		regs->r8 = (long) error ? error : val;
+		regs->r8 = (long) (error ? error : val);
 		return;
 	}
 #endif
#1 lore raw

arch/ia64/include/asm/syscall.h static inline void syscall_set_return_value(struct task_struct *task, · line 67

Quoted 10 lines · Roel Kluin
arch/ia64/include/asm/syscall.h +1 -1
index 2f758a4..3fc1832 100644
@@ -64,7 +64,7 @@ static inline void syscall_set_return_value(struct task_struct *task,
 {
 #ifdef CONFIG_IA32_SUPPORT
 	if (IS_IA32_PROCESS(regs)) {
-		regs->r8 = (long) error ? error : val;
+		regs->r8 = (long) (error ? error : val);

The cast can be removed, it has no influence whatsoever.

Andreas.

Signature · 4 lines
Andreas Schwab, SuSE Labs, [email protected]
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."