From: David S. Miller Date: Thu, 15 Nov 2018 22:57:09 +0000 (-0800) Subject: test_objagg: Fix warning. X-Git-Tag: v5.0-rc1~129^2~299 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=110e2b4b94c623b36d0345a604970db34935f158;p=linux.git 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: David S. Miller --- diff --git a/lib/test_objagg.c b/lib/test_objagg.c index aac5d8e8800c..ab57144bb0cd 100644 --- a/lib/test_objagg.c +++ b/lib/test_objagg.c @@ -769,6 +769,7 @@ static int test_delta_action_item(struct world *world, if (err) goto errout; + errmsg = NULL; err = check_expect_stats(objagg, &action_item->expect_stats, &errmsg); if (err) { pr_err("Key %u: Stats: %s\n", action_item->key_id, errmsg);