Skip to content

Commit

Permalink
powerpc/numa: Avoid stupid uninitialized warning from gcc
Browse files Browse the repository at this point in the history
Newer gcc are being a bit blind here (it's pretty obvious we don't
reach the code path using the array if we haven't initialized the
pointer) but none of that is performance critical so let's just
silence it.

Signed-off-by: Benjamin Herrenschmidt <[email protected]>
  • Loading branch information
ozbenh committed Jul 10, 2012
1 parent 21b2de3 commit aa709f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/mm/numa.c
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ static void __init parse_drconf_memory(struct device_node *memory)
unsigned int n, rc, ranges, is_kexec_kdump = 0;
unsigned long lmb_size, base, size, sz;
int nid;
struct assoc_arrays aa;
struct assoc_arrays aa = { .arrays = NULL };

n = of_get_drconf_memory(memory, &dm);
if (!n)
Expand Down

0 comments on commit aa709f3

Please sign in to comment.