Skip to contentSkip to conversation

mfd: timberdale: remove redundant assignment to variable err

PATCH New Colin King 1 participant 1 message Mar 27, 2021

Subsystems (2)
lore
Share & tools
lore

Colin King

author
#0 lore raw

PATCH 1/1 mfd: timberdale: remove redundant assignment to variable err

From: Colin Ian King <[email protected]>

Variable err is assigned -ENODEV followed by an error return path via label err_mfd that does not access the variable and returns with the -ENODEV error return code. The assignment to err is redundant and can be removed.

---
 drivers/mfd/timberdale.c | 1 -
 1 file changed, 1 deletion(-)
drivers/mfd/timberdale.c +0 -1
index faecbca6dba3..0a9872ed722f 100644
@@ -766,7 +766,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;
 	}
 
Signature · 1 line
2.30.2