Commit aa8d15bf authored by Bart Van Assche's avatar Bart Van Assche Committed by Jens Axboe

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: default avatarBart Van Assche <bart.vanassche@sandisk.com>
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent 1a89694f
...@@ -495,7 +495,6 @@ int rescan_partitions(struct gendisk *disk, struct block_device *bdev) ...@@ -495,7 +495,6 @@ int rescan_partitions(struct gendisk *disk, struct block_device *bdev)
/* add partitions */ /* add partitions */
for (p = 1; p < state->limit; p++) { for (p = 1; p < state->limit; p++) {
sector_t size, from; sector_t size, from;
struct partition_meta_info *info = NULL;
size = state->parts[p].size; size = state->parts[p].size;
if (!size) if (!size)
...@@ -530,8 +529,6 @@ int rescan_partitions(struct gendisk *disk, struct block_device *bdev) ...@@ -530,8 +529,6 @@ int rescan_partitions(struct gendisk *disk, struct block_device *bdev)
} }
} }
if (state->parts[p].has_info)
info = &state->parts[p].info;
part = add_partition(disk, p, from, size, part = add_partition(disk, p, from, size,
state->parts[p].flags, state->parts[p].flags,
&state->parts[p].info); &state->parts[p].info);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment