summaryrefslogtreecommitdiffstats
path: root/block/partition-generic.c
diff options
context:
space:
mode:
authorBart Van Assche <bart.vanassche@sandisk.com>2016-06-14 17:03:13 +0200
committerJens Axboe <axboe@fb.com>2016-06-14 09:09:15 -0600
commitaa8d15bfe4ed23b97bf3990e2901844efc6347ec (patch)
tree7c4a3637c9084648e7feb461cfda92b32554310e /block/partition-generic.c
parent1a89694f7899d39aa58cc6f061e97a17089ac025 (diff)
downloadlinux-stable-aa8d15bfe4ed23b97bf3990e2901844efc6347ec.tar.gz
linux-stable-aa8d15bfe4ed23b97bf3990e2901844efc6347ec.tar.bz2
linux-stable-aa8d15bfe4ed23b97bf3990e2901844efc6347ec.zip
block/partition-generic.c: Remove a set-but-not-used variable
A value is assigned to the variable 'info' but that value is never used. Hence remove the variable 'info'. Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block/partition-generic.c')
-rw-r--r--block/partition-generic.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/block/partition-generic.c b/block/partition-generic.c
index d7eb77e1e3a8..71d9ed9df8da 100644
--- a/block/partition-generic.c
+++ b/block/partition-generic.c
@@ -495,7 +495,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)
@@ -530,8 +529,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);