From: Mikulas Patocka Date: Wed, 2 Oct 2019 11:07:57 +0000 (-0400) Subject: dm writecache: fix uninitialized variable warning X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=8dd85873a0bd8f162e95bc9402eea0050dbdac01;p=uclinux-h8%2Flinux.git dm writecache: fix uninitialized variable warning This fixes coverity warning CID 1454301. Signed-off-by: Mikulas Patocka Signed-off-by: Mike Snitzer --- diff --git a/drivers/md/dm-writecache.c b/drivers/md/dm-writecache.c index d06b8aa41e26..ea7b8be0b833 100644 --- a/drivers/md/dm-writecache.c +++ b/drivers/md/dm-writecache.c @@ -1561,7 +1561,7 @@ static void writecache_writeback(struct work_struct *work) { struct dm_writecache *wc = container_of(work, struct dm_writecache, writeback_work); struct blk_plug plug; - struct wc_entry *f, *g, *e = NULL; + struct wc_entry *f, *uninitialized_var(g), *e = NULL; struct rb_node *node, *next_node; struct list_head skipped; struct writeback_list wbl;