summaryrefslogtreecommitdiff
path: root/block/partitions/atari.c
diff options
context:
space:
mode:
authorMichal Orzel <michalorzel.eng@gmail.com>2022-04-23 14:38:10 +0300
committerJens Axboe <axboe@kernel.dk>2022-04-23 16:15:26 +0300
commit87420fa94f6cdd2ae8aa3e1d8602bfa549794fac (patch)
treebc716ba8d25792cc0d93c50418ba4e8187a5165a /block/partitions/atari.c
parent834726828b47c08e84df02f975e30c5c65bf316b (diff)
downloadlinux-87420fa94f6cdd2ae8aa3e1d8602bfa549794fac.tar.xz
block/partitions/atari: Remove redundant assignment
Get rid of redundant assignment to a variable part_fmt from function atari_partition. It is being assigned a value that is never read until the end of function. Reported by clang-tidy [deadcode.DeadStores] Signed-off-by: Michal Orzel <michalorzel.eng@gmail.com> Link: https://lore.kernel.org/r/20220423113811.13335-4-michalorzel.eng@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/partitions/atari.c')
-rw-r--r--block/partitions/atari.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/block/partitions/atari.c b/block/partitions/atari.c
index da5994175416..9655c728262a 100644
--- a/block/partitions/atari.c
+++ b/block/partitions/atari.c
@@ -140,7 +140,6 @@ int atari_partition(struct parsed_partitions *state)
/* accept only GEM,BGM,RAW,LNX,SWP partitions */
if (!((pi->flg & 1) && OK_id(pi->id)))
continue;
- part_fmt = 2;
put_partition (state, slot,
be32_to_cpu(pi->st),
be32_to_cpu(pi->siz));