lkml.org 
[lkml]   [2014]   [Oct]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 1/1 linux-next] block: remove struct partition_meta_info from rescan_partitions
Date
&state->parts[p].info is directly passed to
add_partition(). local info is initialized but unused.

Signed-off-by: Fabian Frederick <fabf@skynet.be>
---
block/partition-generic.c | 3 ---
1 file changed, 3 deletions(-)

diff --git a/block/partition-generic.c b/block/partition-generic.c
index 0d9e5f9..646c0e3 100644
--- a/block/partition-generic.c
+++ b/block/partition-generic.c
@@ -475,7 +475,6 @@ rescan:
/* add partitions */
for (p = 1; p < state->limit; p++) {
sector_t size, from;
- struct partition_meta_info *info = NULL;

size = state->parts[p].size;
if (!size)
@@ -510,8 +509,6 @@ rescan:
}
}

- if (state->parts[p].has_info)
- info = &state->parts[p].info;
part = add_partition(disk, p, from, size,
state->parts[p].flags,
&state->parts[p].info);
--
1.9.3


\
 
 \ /
  Last update: 2014-10-23 19:01    [W:0.053 / U:0.072 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site