Commit 110e2b4b authored by David S. Miller's avatar David S. Miller

test_objagg: Fix warning.

lib/test_objagg.c: In function ‘test_delta_action_item’:
./include/linux/printk.h:308:2: warning: ‘errmsg’ may be used uninitialized in this function [-Wmaybe-uninitialized]
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4e86889b
...@@ -769,6 +769,7 @@ static int test_delta_action_item(struct world *world, ...@@ -769,6 +769,7 @@ static int test_delta_action_item(struct world *world,
if (err) if (err)
goto errout; goto errout;
errmsg = NULL;
err = check_expect_stats(objagg, &action_item->expect_stats, &errmsg); err = check_expect_stats(objagg, &action_item->expect_stats, &errmsg);
if (err) { if (err) {
pr_err("Key %u: Stats: %s\n", action_item->key_id, errmsg); pr_err("Key %u: Stats: %s\n", action_item->key_id, errmsg);
......
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