From: Bart Van Assche Date: Tue, 14 Jun 2016 15:03:13 +0000 (+0200) Subject: block/partition-generic.c: Remove a set-but-not-used variable X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=aa8d15bfe4ed23b97bf3990e2901844efc6347ec;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Jens Axboe --- 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);