All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] EDAC: remove redundant assignment to variable rc
@ 2020-04-24 11:29 ` Colin King
  0 siblings, 0 replies; 6+ messages in thread
From: Colin King @ 2020-04-24 11:29 UTC (permalink / raw)
  To: Tony Luck, Qiuxu Zhuo, Borislav Petkov, Mauro Carvalho Chehab,
	James Morse, Robert Richter, linux-edac
  Cc: kernel-janitors, linux-kernel

From: Colin Ian King <colin.king@canonical.com>

The variable rc is being initialized with a value that is
never read and it is being updated later with a new value. The
initialization is redundant and can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
 drivers/edac/sb_edac.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/edac/sb_edac.c b/drivers/edac/sb_edac.c
index d414698ca324..19c95943d218 100644
--- a/drivers/edac/sb_edac.c
+++ b/drivers/edac/sb_edac.c
@@ -3442,7 +3442,7 @@ MODULE_DEVICE_TABLE(x86cpu, sbridge_cpuids);
 
 static int sbridge_probe(const struct x86_cpu_id *id)
 {
-	int rc = -ENODEV;
+	int rc;
 	u8 mc, num_mc = 0;
 	struct sbridge_dev *sbridge_dev;
 	struct pci_id_table *ptable = (struct pci_id_table *)id->driver_data;
-- 
2.25.1

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-05-29 13:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-24 11:29 [PATCH] EDAC: remove redundant assignment to variable rc Colin King
2020-04-24 11:29 ` Colin King
2020-04-29 15:48 ` [PATCH] EDAC: remove redundant assignment to variable ret Colin King
2020-04-29 15:48   ` Colin King
2020-05-29 13:20   ` Borislav Petkov
2020-05-29 13:20     ` Borislav Petkov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.