mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-27 14:14:24 +08:00
mfd: timberdale: Remove redundant assignment to variable err
The variable err is being assigned -ENODEV and then err is being re-assigned the same error value via the error exit label err_mfd. The assignment is redundant and can be removed. Cleans up clang scan build warning: drivers/mfd/timberdale.c:768:3: warning: Value stored to 'err' is never read [deadcode.DeadStores] Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Link: https://lore.kernel.org/r/20240415102632.484411-1-colin.i.king@gmail.com Signed-off-by: Lee Jones <lee@kernel.org>
This commit is contained in:
parent
6cb72bd486
commit
11db542183
@ -765,7 +765,6 @@ static int timb_probe(struct pci_dev *dev,
|
||||
default:
|
||||
dev_err(&dev->dev, "Unknown IP setup: %d.%d.%d\n",
|
||||
priv->fw.major, priv->fw.minor, ip_setup);
|
||||
err = -ENODEV;
|
||||
goto err_mfd;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user