Skip to content

Commit

Permalink
sh: unwinder: Fix up uninitialized variable warnings on sh2a build.
Browse files Browse the repository at this point in the history
A couple of these popped up on the sh2a build, causing build failures.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Paul Mundt committed Aug 31, 2009
1 parent 4aa5ac4 commit 2f6dafc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion arch/sh/include/asm/dwarf.h
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@
*/
static __always_inline unsigned long dwarf_read_arch_reg(unsigned int reg)
{
unsigned long value;
unsigned long value = 0;

switch (reg) {
case 14:
Expand Down
2 changes: 1 addition & 1 deletion arch/sh/kernel/dwarf.c
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,7 @@ static int __init dwarf_unwinder_init(void)
{
u32 entry_type;
void *p, *entry;
int count, err;
int count, err = 0;
unsigned long len;
unsigned int c_entries, f_entries;
unsigned char *end;
Expand Down

0 comments on commit 2f6dafc

Please sign in to comment.