Skip to content

Commit 567617b

Browse files
Colin Ian Kingsuryasaimadhu
authored andcommitted
EDAC/sb_edac: Remove redundant initialization of variable rc
The variable rc is being initialized with a value that is never read, it is being updated later on. The assignment is redundant and thus remove it. Signed-off-by: Colin Ian King <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent b011a57 commit 567617b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/edac/sb_edac.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3439,7 +3439,7 @@ MODULE_DEVICE_TABLE(x86cpu, sbridge_cpuids);
34393439

34403440
static int sbridge_probe(const struct x86_cpu_id *id)
34413441
{
3442-
int rc = -ENODEV;
3442+
int rc;
34433443
u8 mc, num_mc = 0;
34443444
struct sbridge_dev *sbridge_dev;
34453445
struct pci_id_table *ptable = (struct pci_id_table *)id->driver_data;

0 commit comments

Comments
 (0)