aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/scsi/qla4xxx/ql4_os.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/scsi/qla4xxx/ql4_os.c b/drivers/scsi/qla4xxx/ql4_os.c
index b8acc40d6f6c..6142729167f4 100644
--- a/drivers/scsi/qla4xxx/ql4_os.c
+++ b/drivers/scsi/qla4xxx/ql4_os.c
@@ -1337,18 +1337,18 @@ static int qla4xxx_session_get_param(struct iscsi_cls_session *cls_sess,
1337 sess->password_in, BIDI_CHAP, 1337 sess->password_in, BIDI_CHAP,
1338 &idx); 1338 &idx);
1339 if (rval) 1339 if (rval)
1340 return -EINVAL; 1340 len = sprintf(buf, "\n");
1341 1341 else
1342 len = sprintf(buf, "%hu\n", idx); 1342 len = sprintf(buf, "%hu\n", idx);
1343 break; 1343 break;
1344 case ISCSI_PARAM_CHAP_OUT_IDX: 1344 case ISCSI_PARAM_CHAP_OUT_IDX:
1345 rval = qla4xxx_get_chap_index(ha, sess->username, 1345 rval = qla4xxx_get_chap_index(ha, sess->username,
1346 sess->password, LOCAL_CHAP, 1346 sess->password, LOCAL_CHAP,
1347 &idx); 1347 &idx);
1348 if (rval) 1348 if (rval)
1349 return -EINVAL; 1349 len = sprintf(buf, "\n");
1350 1350 else
1351 len = sprintf(buf, "%hu\n", idx); 1351 len = sprintf(buf, "%hu\n", idx);
1352 break; 1352 break;
1353 default: 1353 default:
1354 return iscsi_session_get_param(cls_sess, param, buf); 1354 return iscsi_session_get_param(cls_sess, param, buf);