lkml.org 
[lkml]   [2016]   [Oct]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH 3/9] md/dm-table: Delete an unnecessary variable initialisation in dm_table_register_integrity()
From
Date
From: Markus Elfring <elfring@users.sourceforge.net>
Date: Sat, 1 Oct 2016 07:25:43 +0200

The local variable "template_disk" is reassigned by a statement
at the beginning. Thus omit the explicit initialisation.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
---
drivers/md/dm-table.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/md/dm-table.c b/drivers/md/dm-table.c
index 73d38d0..67cc635 100644
--- a/drivers/md/dm-table.c
+++ b/drivers/md/dm-table.c
@@ -1165,7 +1165,7 @@ static struct gendisk * dm_table_get_integrity_disk(struct dm_table *t)
static int dm_table_register_integrity(struct dm_table *t)
{
struct mapped_device *md = t->md;
- struct gendisk *template_disk = NULL;
+ struct gendisk *template_disk;

template_disk = dm_table_get_integrity_disk(t);
if (!template_disk)
--
2.10.0
\
 
 \ /
  Last update: 2016-10-01 09:47    [W:0.051 / U:1.216 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site