maxframe_size is not supported by all HBAs, thus ignore rc
for reading maxframe_size to avoid following error print.
fprintf(stderr, "%s: errors (%x) from /sys reads in %s\n",
__func__, rc, dp->d_name);
Signed-off-by: Vasu Dev <[email protected]>
---
rport.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/rport.c b/rport.c
index 7b72872..1460c2e 100644
--- a/rport.c
+++ b/rport.c
@@ -80,7 +80,7 @@ sysfs_get_rport(struct dirent *dp, void *arg)
rc |= sys_read_wwn(rport_dir, "port_name", &rpa->PortWWN);
rc |= sa_sys_read_u32(rport_dir, "port_id", &rpa->PortFcId);
rc |= sa_sys_read_u32(rport_dir, "scsi_target_id", &rp->ap_scsi_target);
- rc |= sa_sys_read_line(rport_dir, "maxframe_size", buf, sizeof(buf));
+ sa_sys_read_line(rport_dir, "maxframe_size", buf, sizeof(buf));
sscanf(buf, "%d", &rpa->PortMaxFrameSize);
rc |= sys_read_port_state(rport_dir, "port_state", &rpa->PortState);
rc |= sys_read_classes(rport_dir, "supported_classes",
_______________________________________________
devel mailing list
[email protected]
http://www.open-fcoe.org/mailman/listinfo/devel