diff options
author | David S. Miller <davem@davemloft.net> | 2018-11-15 14:57:09 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-11-15 14:57:09 -0800 |
commit | 110e2b4b94c623b36d0345a604970db34935f158 (patch) | |
tree | 64634f9c4fc1de4ac308ca3ec68d6b9bd0143045 | |
parent | 4e86889b52ac53a164feb92d27bd2a7d9f3e6ad4 (diff) |
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 <davem@davemloft.net>
-rw-r--r-- | lib/test_objagg.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |