Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 47435
b: refs/heads/master
c: ea5e1a8
h: refs/heads/master
i:
  47433: f6ddd18
  47431: ea413e1
v: v3
  • Loading branch information
Ahmed S. Darwish authored and Linus Torvalds committed Feb 11, 2007
1 parent a1d485c commit 4816632
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bf0059b23fd2f0b304f647d87fad0aa626ecf0c0
refs/heads/master: ea5e1a827abe1e9ba1c8d214b7408b6c363d764a
4 changes: 2 additions & 2 deletions trunk/arch/m68k/kernel/ptrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ static inline long get_reg(struct task_struct *task, int regno)

if (regno == PT_USP)
addr = &task->thread.usp;
else if (regno < sizeof(regoff)/sizeof(regoff[0]))
else if (regno < ARRAY_SIZE(regoff))
addr = (unsigned long *)(task->thread.esp0 + regoff[regno]);
else
return 0;
Expand All @@ -93,7 +93,7 @@ static inline int put_reg(struct task_struct *task, int regno,

if (regno == PT_USP)
addr = &task->thread.usp;
else if (regno < sizeof(regoff)/sizeof(regoff[0]))
else if (regno < ARRAY_SIZE(regoff))
addr = (unsigned long *)(task->thread.esp0 + regoff[regno]);
else
return -1;
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/m68k/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -1011,7 +1011,7 @@ EXPORT_SYMBOL(dump_stack);
void bad_super_trap (struct frame *fp)
{
console_verbose();
if (fp->ptregs.vector < 4*sizeof(vec_names)/sizeof(vec_names[0]))
if (fp->ptregs.vector < 4 * ARRAY_SIZE(vec_names))
printk ("*** %s *** FORMAT=%X\n",
vec_names[(fp->ptregs.vector) >> 2],
fp->ptregs.format);
Expand Down

0 comments on commit 4816632

Please sign in to comment.