From: Michal Orzel Date: Sat, 23 Apr 2022 11:38:10 +0000 (+0200) Subject: block/partitions/atari: Remove redundant assignment X-Git-Tag: v5.19-rc1~125^2~46 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=87420fa94f6cdd2ae8aa3e1d8602bfa549794fac;p=thirdparty%2Fkernel%2Flinux.git 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 Link: https://lore.kernel.org/r/20220423113811.13335-4-michalorzel.eng@gmail.com Signed-off-by: Jens Axboe --- diff --git a/block/partitions/atari.c b/block/partitions/atari.c index da59941754163..9655c728262a4 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));