Commit 7e7a53d5 authored by David Gibson's avatar David Gibson

agar: Remove unnecessary NULL check

At this point the construction of the function above means that nn cannot
be NULL.

Found by Coverity Scan.
Signed-off-by: default avatarDavid Gibson <david@gibson.dropbear.id.au>
parent 5c176748
......@@ -59,7 +59,7 @@ static struct aga_node *nr_to_n(struct agar_state *sr, const void *nr)
assert(rc);
}
return nn ? &nn->n : NULL;
return &nn->n;
}
static const void *n_to_nr(struct agar_state *sr, const struct aga_node *n)
......
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