mirror of
https://github.com/torvalds/linux.git
synced 2024-11-21 19:41:42 +00:00
block/partitions/acorn: Remove redundant assignments
Get rid of redundant assignments to a variable slot from function adfspart_check_ADFS. It is being assigned a value that is never read as we are breaking out from the switch case and the function ends. Reported by clang-tidy [deadcode.DeadStores] Signed-off-by: Michal Orzel <michalorzel.eng@gmail.com> Link: https://lore.kernel.org/r/20220423113811.13335-3-michalorzel.eng@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
7ab89db979
commit
834726828b
@ -282,13 +282,13 @@ int adfspart_check_ADFS(struct parsed_partitions *state)
|
|||||||
#ifdef CONFIG_ACORN_PARTITION_RISCIX
|
#ifdef CONFIG_ACORN_PARTITION_RISCIX
|
||||||
case PARTITION_RISCIX_SCSI:
|
case PARTITION_RISCIX_SCSI:
|
||||||
case PARTITION_RISCIX_MFM:
|
case PARTITION_RISCIX_MFM:
|
||||||
slot = riscix_partition(state, start_sect, slot,
|
riscix_partition(state, start_sect, slot,
|
||||||
nr_sects);
|
nr_sects);
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
case PARTITION_LINUX:
|
case PARTITION_LINUX:
|
||||||
slot = linux_partition(state, start_sect, slot,
|
linux_partition(state, start_sect, slot,
|
||||||
nr_sects);
|
nr_sects);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user