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 <colin.i.king@gmail.com> Signed-off-by: Borislav Petkov <bp@suse.de> Link: https://lore.kernel.org/r/20211126221848.1125321-1-colin.i.king@gmail.com
1 parent b011a57 commit 567617b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)