[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20210327224131.25180-1-colin.king@canonical.com>
Date: Sat, 27 Mar 2021 22:41:31 +0000
From: Colin King <colin.king@...onical.com>
To: Lee Jones <lee.jones@...aro.org>
Cc: kernel-janitors@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH] mfd: timberdale: remove redundant assignment to variable err
From: Colin Ian King <colin.king@...onical.com>
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.
Signed-off-by: Colin Ian King <colin.king@...onical.com>
---
drivers/mfd/timberdale.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/mfd/timberdale.c b/drivers/mfd/timberdale.c
index faecbca6dba3..0a9872ed722f 100644
--- a/drivers/mfd/timberdale.c
+++ b/drivers/mfd/timberdale.c
@@ -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;
}
--
2.30.2
Powered by blists - more mailing lists