public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] block: Remove some unnecessary codes
@ 2012-05-10  3:06 zwu.kernel
  2012-05-11 15:08 ` Zhi Yong Wu
  2012-05-11 17:08 ` Jens Axboe
  0 siblings, 2 replies; 3+ messages in thread
From: zwu.kernel @ 2012-05-10  3:06 UTC (permalink / raw)
  To: linux-kernel; +Cc: axboe, wuzhy, stefanha, trbecker

From: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com>

Signed-off-by: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com>
---
 block/partition-generic.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/block/partition-generic.c b/block/partition-generic.c
index 6df5d69..b6a9d5b 100644
--- a/block/partition-generic.c
+++ b/block/partition-generic.c
@@ -473,7 +473,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)
@@ -508,8 +507,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.7.6


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-05-11 17:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-10  3:06 [PATCH v2] block: Remove some unnecessary codes zwu.kernel
2012-05-11 15:08 ` Zhi Yong Wu
2012-05-11 17:08 ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox