projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e86889
)
test_objagg: Fix warning.
author
David S. Miller
<davem@davemloft.net>
Thu, 15 Nov 2018 22:57:09 +0000
(14:57 -0800)
committer
David S. Miller
<davem@davemloft.net>
Thu, 15 Nov 2018 22:57:09 +0000
(14:57 -0800)
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>
lib/test_objagg.c
patch
|
blob
|
history
diff --git
a/lib/test_objagg.c
b/lib/test_objagg.c
index
aac5d8e
..
ab57144
100644
(file)
--- 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);