mirror of
https://github.com/fail0verflow/switch-linux.git
synced 2025-05-04 02:34:21 -04:00
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
1 changed files with 0 additions and 3 deletions
|
@ -495,7 +495,6 @@ rescan:
|
||||||
/* 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 @@ rescan:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
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);
|
||||||
|
|
Loading…
Add table
Reference in a new issue