aboutsummaryrefslogtreecommitdiffstats
path: root/arch/h8300
diff options
context:
space:
mode:
authorDomen Puncer <domen@coderock.org>2005-06-23 03:08:47 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-23 12:45:15 -0400
commit15d20bfd606c4b4454aeaa05fc86f77994e48c92 (patch)
treeb15262d9237fd221a31ba2823837b6a7dd843cf6 /arch/h8300
parent76381fee7e8feb4c22be636aa5d4765dbe4fbf9e (diff)
[PATCH] ptrace_h8300: condition bugfix
Assignment doesn't make much sense here as condition would always be true. Signed-off-by: Domen Puncer <domen@coderock.org> Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/h8300')
-rw-r--r--arch/h8300/platform/h8300h/ptrace_h8300h.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/h8300/platform/h8300h/ptrace_h8300h.c b/arch/h8300/platform/h8300h/ptrace_h8300h.c
index 18e51a7167d3..6ac93c05a1ae 100644
--- a/arch/h8300/platform/h8300h/ptrace_h8300h.c
+++ b/arch/h8300/platform/h8300h/ptrace_h8300h.c
@@ -245,12 +245,12 @@ static unsigned short *getnextpc(struct task_struct *child, unsigned short *pc)
245 addr = h8300_get_reg(child, regno-1+PT_ER1); 245 addr = h8300_get_reg(child, regno-1+PT_ER1);
246 return (unsigned short *)addr; 246 return (unsigned short *)addr;
247 case relb: 247 case relb:
248 if ((inst = 0x55) || isbranch(child,inst & 0x0f)) 248 if (inst == 0x55 || isbranch(child,inst & 0x0f))
249 pc = (unsigned short *)((unsigned long)pc + 249 pc = (unsigned short *)((unsigned long)pc +
250 ((signed char)(*fetch_p))); 250 ((signed char)(*fetch_p)));
251 return pc+1; /* skip myself */ 251 return pc+1; /* skip myself */
252 case relw: 252 case relw:
253 if ((inst = 0x5c) || isbranch(child,(*fetch_p & 0xf0) >> 4)) 253 if (inst == 0x5c || isbranch(child,(*fetch_p & 0xf0) >> 4))
254 pc = (unsigned short *)((unsigned long)pc + 254 pc = (unsigned short *)((unsigned long)pc +
255 ((signed short)(*(pc+1)))); 255 ((signed short)(*(pc+1))));
256 return pc+2; /* skip myself */ 256 return pc+2; /* skip myself */