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>
This commit is contained in:
parent
1a89694f78
commit
aa8d15bfe4
|
@ -495,7 +495,6 @@ int rescan_partitions(struct gendisk *disk, struct block_device *bdev)
|
|||
/* 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 @@ 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,
|
||||
state->parts[p].flags,
|
||||
&state->parts[p].info);
|
||||
|
|
Loading…
Reference in New Issue