[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1336619193-4808-1-git-send-email-zwu.kernel@gmail.com>
Date: Thu, 10 May 2012 11:06:33 +0800
From: zwu.kernel@...il.com
To: linux-kernel@...r.kernel.org
Cc: axboe@...nel.dk, wuzhy@...ux.vnet.ibm.com,
stefanha@...ux.vnet.ibm.com, trbecker@...ecker.org
Subject: [PATCH v2] block: Remove some unnecessary codes
From: Zhi Yong Wu <wuzhy@...ux.vnet.ibm.com>
Signed-off-by: Zhi Yong Wu <wuzhy@...ux.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists