aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/fcoe/fcoe_sysfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/fcoe/fcoe_sysfs.c')
-rw-r--r--drivers/scsi/fcoe/fcoe_sysfs.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/scsi/fcoe/fcoe_sysfs.c b/drivers/scsi/fcoe/fcoe_sysfs.c
index 1f4f22fe8281..045c4e11ee54 100644
--- a/drivers/scsi/fcoe/fcoe_sysfs.c
+++ b/drivers/scsi/fcoe/fcoe_sysfs.c
@@ -300,29 +300,29 @@ static ssize_t store_ctlr_mode(struct device *dev,
300 300
301 switch (ctlr->enabled) { 301 switch (ctlr->enabled) {
302 case FCOE_CTLR_ENABLED: 302 case FCOE_CTLR_ENABLED:
303 LIBFCOE_SYSFS_DBG(ctlr, "Cannot change mode when enabled."); 303 LIBFCOE_SYSFS_DBG(ctlr, "Cannot change mode when enabled.\n");
304 return -EBUSY; 304 return -EBUSY;
305 case FCOE_CTLR_DISABLED: 305 case FCOE_CTLR_DISABLED:
306 if (!ctlr->f->set_fcoe_ctlr_mode) { 306 if (!ctlr->f->set_fcoe_ctlr_mode) {
307 LIBFCOE_SYSFS_DBG(ctlr, 307 LIBFCOE_SYSFS_DBG(ctlr,
308 "Mode change not supported by LLD."); 308 "Mode change not supported by LLD.\n");
309 return -ENOTSUPP; 309 return -ENOTSUPP;
310 } 310 }
311 311
312 ctlr->mode = fcoe_parse_mode(mode); 312 ctlr->mode = fcoe_parse_mode(mode);
313 if (ctlr->mode == FIP_CONN_TYPE_UNKNOWN) { 313 if (ctlr->mode == FIP_CONN_TYPE_UNKNOWN) {
314 LIBFCOE_SYSFS_DBG(ctlr, 314 LIBFCOE_SYSFS_DBG(ctlr, "Unknown mode %s provided.\n",
315 "Unknown mode %s provided.", buf); 315 buf);
316 return -EINVAL; 316 return -EINVAL;
317 } 317 }
318 318
319 ctlr->f->set_fcoe_ctlr_mode(ctlr); 319 ctlr->f->set_fcoe_ctlr_mode(ctlr);
320 LIBFCOE_SYSFS_DBG(ctlr, "Mode changed to %s.", buf); 320 LIBFCOE_SYSFS_DBG(ctlr, "Mode changed to %s.\n", buf);
321 321
322 return count; 322 return count;
323 case FCOE_CTLR_UNUSED: 323 case FCOE_CTLR_UNUSED:
324 default: 324 default:
325 LIBFCOE_SYSFS_DBG(ctlr, "Mode change not supported."); 325 LIBFCOE_SYSFS_DBG(ctlr, "Mode change not supported.\n");
326 return -ENOTSUPP; 326 return -ENOTSUPP;
327 }; 327 };
328} 328}
@@ -657,7 +657,7 @@ static int fcoe_fcf_device_match(struct fcoe_fcf_device *new,
657 if (new->switch_name == old->switch_name && 657 if (new->switch_name == old->switch_name &&
658 new->fabric_name == old->fabric_name && 658 new->fabric_name == old->fabric_name &&
659 new->fc_map == old->fc_map && 659 new->fc_map == old->fc_map &&
660 compare_ether_addr(new->mac, old->mac) == 0) 660 ether_addr_equal(new->mac, old->mac))
661 return 1; 661 return 1;
662 return 0; 662 return 0;
663} 663}