mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-10 07:50:04 +00:00
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
This commit is contained in:
parent
b011a57e41
commit
567617baac
@ -3439,7 +3439,7 @@ MODULE_DEVICE_TABLE(x86cpu, sbridge_cpuids);
|
|||||||
|
|
||||||
static int sbridge_probe(const struct x86_cpu_id *id)
|
static int sbridge_probe(const struct x86_cpu_id *id)
|
||||||
{
|
{
|
||||||
int rc = -ENODEV;
|
int rc;
|
||||||
u8 mc, num_mc = 0;
|
u8 mc, num_mc = 0;
|
||||||
struct sbridge_dev *sbridge_dev;
|
struct sbridge_dev *sbridge_dev;
|
||||||
struct pci_id_table *ptable = (struct pci_id_table *)id->driver_data;
|
struct pci_id_table *ptable = (struct pci_id_table *)id->driver_data;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user