]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
mtd: tests: Remove redundant assignment to err
authorYang Li <yang.lee@linux.alibaba.com>
Wed, 28 Apr 2021 10:02:22 +0000 (18:02 +0800)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 10 May 2021 10:48:35 +0000 (12:48 +0200)
commit063deb31ae902b510e57af17a45151baf5057a61
treec6bf269b686db9f21ca934204fa5b3d3de0e1cca
parent9c5b19c2eea8cb8d5784dedce8cac07e9a20198e
mtd: tests: Remove redundant assignment to err

Variable 'err' is set to 0 but this value is never read as it is
overwritten with a new value later on, hence it is a redundant
assignment and can be removed.

Cleans up the following clang-analyzer warning:

drivers/mtd/tests/torturetest.c:233:2: warning: Value stored to 'err' is
never read [clang-analyzer-deadcode.DeadStores]

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/1619604142-119891-1-git-send-email-yang.lee@linux.alibaba.com
drivers/mtd/tests/torturetest.c