dm-bufio: fix warning
diff mbox

Message ID alpine.LRH.2.02.1802111909280.22407@file01.intranet.prod.int.rdu2.redhat.com
State Superseded, archived
Delegated to: Mike Snitzer
Headers show

Commit Message

Mikulas Patocka Feb. 12, 2018, 12:09 a.m. UTC
Fix uninitialized variable warning in dm-bufio.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>

---
 drivers/md/dm-bufio.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel

Patch
diff mbox

Index: linux-2.6/drivers/md/dm-bufio.c
===================================================================
--- linux-2.6.orig/drivers/md/dm-bufio.c	2018-02-09 00:25:00.000000000 +0100
+++ linux-2.6/drivers/md/dm-bufio.c	2018-02-12 01:07:37.000000000 +0100
@@ -386,7 +386,7 @@  static void __cache_size_refresh(void)
 static void *alloc_buffer_data(struct dm_bufio_client *c, gfp_t gfp_mask,
 			       enum data_mode *data_mode)
 {
-	unsigned noio_flag;
+	unsigned uninitialized_var(noio_flag);
 	void *ptr;
 
 	if (c->block_size <= DM_BUFIO_BLOCK_SIZE_SLAB_LIMIT) {