|
@@ -1177,7 +1177,7 @@ static int i7core_create_sysfs_devices(struct mem_ctl_info *mci)
|
|
|
|
|
|
pvt->addrmatch_dev = kzalloc(sizeof(*pvt->addrmatch_dev), GFP_KERNEL);
|
|
|
if (!pvt->addrmatch_dev)
|
|
|
- return rc;
|
|
|
+ return -ENOMEM;
|
|
|
|
|
|
pvt->addrmatch_dev->type = &addrmatch_type;
|
|
|
pvt->addrmatch_dev->bus = mci->dev.bus;
|
|
@@ -1198,7 +1198,7 @@ static int i7core_create_sysfs_devices(struct mem_ctl_info *mci)
|
|
|
if (!pvt->chancounts_dev) {
|
|
|
put_device(pvt->addrmatch_dev);
|
|
|
device_del(pvt->addrmatch_dev);
|
|
|
- return rc;
|
|
|
+ return -ENOMEM;
|
|
|
}
|
|
|
|
|
|
pvt->chancounts_dev->type = &all_channel_counts_type;
|