Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Michal Orzel and committed by
Jens Axboe
87420fa9 83472682

-1
-1
block/partitions/atari.c
··· 140 140 /* accept only GEM,BGM,RAW,LNX,SWP partitions */ 141 141 if (!((pi->flg & 1) && OK_id(pi->id))) 142 142 continue; 143 - part_fmt = 2; 144 143 put_partition (state, slot, 145 144 be32_to_cpu(pi->st), 146 145 be32_to_cpu(pi->siz));