aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ieee1394/nodemgr.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ieee1394/nodemgr.c')
-rw-r--r--drivers/ieee1394/nodemgr.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/drivers/ieee1394/nodemgr.c b/drivers/ieee1394/nodemgr.c
index ddd7aac1e90f..9e2404505685 100644
--- a/drivers/ieee1394/nodemgr.c
+++ b/drivers/ieee1394/nodemgr.c
@@ -1145,13 +1145,14 @@ static void nodemgr_process_root_directory(struct host_info *hi, struct node_ent
1145 last_key_id = kv->key.id; 1145 last_key_id = kv->key.id;
1146 } 1146 }
1147 1147
1148 if (ne->vendor_name_kv && 1148 if (ne->vendor_name_kv) {
1149 device_create_file(&ne->device, &dev_attr_ne_vendor_name_kv)) 1149 int error = device_create_file(&ne->device,
1150 goto fail; 1150 &dev_attr_ne_vendor_name_kv);
1151 return; 1151
1152fail: 1152 if (error && error != -EEXIST)
1153 HPSB_ERR("Failed to add sysfs attribute for node %016Lx", 1153 HPSB_ERR("Failed to add sysfs attribute for node "
1154 (unsigned long long)ne->guid); 1154 "%016Lx", (unsigned long long)ne->guid);
1155 }
1155} 1156}
1156 1157
1157#ifdef CONFIG_HOTPLUG 1158#ifdef CONFIG_HOTPLUG