Commit c0b52c14 authored by Alex Grad's avatar Alex Grad Committed by Michael Ellerman

powerpc/kgdb: Removed kmalloc returned value cast

Signed-off-by: default avatarAlex Grad <alex.grad@gmail.com>
Signed-off-by: default avatarMichael Ellerman <michael@ellerman.id.au>
parent 46c74751
...@@ -159,7 +159,7 @@ static int kgdb_singlestep(struct pt_regs *regs) ...@@ -159,7 +159,7 @@ static int kgdb_singlestep(struct pt_regs *regs)
if (user_mode(regs)) if (user_mode(regs))
return 0; return 0;
backup_current_thread_info = (struct thread_info *)kmalloc(sizeof(struct thread_info), GFP_KERNEL); backup_current_thread_info = kmalloc(sizeof(struct thread_info), GFP_KERNEL);
/* /*
* On Book E and perhaps other processors, singlestep is handled on * On Book E and perhaps other processors, singlestep is handled on
* the critical exception stack. This causes current_thread_info() * the critical exception stack. This causes current_thread_info()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment