Skip to content

Commit 11db542

Browse files
ColinIanKinglag-linaro
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
1 parent 6cb72bd commit 11db542

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/mfd/timberdale.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -765,7 +765,6 @@ static int timb_probe(struct pci_dev *dev,
765765
default:
766766
dev_err(&dev->dev, "Unknown IP setup: %d.%d.%d\n",
767767
priv->fw.major, priv->fw.minor, ip_setup);
768-
err = -ENODEV;
769768
goto err_mfd;
770769
}
771770

0 commit comments

Comments
 (0)