mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-28 07:13:34 +00:00
iscsi-target: fix variable name typo in iscsi_check_acceptor_state()
Signed-off-by: Christophe Vu-Brugier <cvubrugier@fastmail.fm> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
This commit is contained in:
parent
3a40dede1f
commit
d2c27f0d0b
1 changed files with 4 additions and 4 deletions
|
@ -967,7 +967,7 @@ static int iscsi_check_acceptor_state(struct iscsi_param *param, char *value,
|
||||||
struct iscsi_conn *conn)
|
struct iscsi_conn *conn)
|
||||||
{
|
{
|
||||||
u8 acceptor_boolean_value = 0, proposer_boolean_value = 0;
|
u8 acceptor_boolean_value = 0, proposer_boolean_value = 0;
|
||||||
char *negoitated_value = NULL;
|
char *negotiated_value = NULL;
|
||||||
|
|
||||||
if (IS_PSTATE_ACCEPTOR(param)) {
|
if (IS_PSTATE_ACCEPTOR(param)) {
|
||||||
pr_err("Received key \"%s\" twice, protocol error.\n",
|
pr_err("Received key \"%s\" twice, protocol error.\n",
|
||||||
|
@ -1068,15 +1068,15 @@ static int iscsi_check_acceptor_state(struct iscsi_param *param, char *value,
|
||||||
param->name, param->value);
|
param->name, param->value);
|
||||||
}
|
}
|
||||||
} else if (IS_TYPE_VALUE_LIST(param)) {
|
} else if (IS_TYPE_VALUE_LIST(param)) {
|
||||||
negoitated_value = iscsi_check_valuelist_for_support(
|
negotiated_value = iscsi_check_valuelist_for_support(
|
||||||
param, value);
|
param, value);
|
||||||
if (!negoitated_value) {
|
if (!negotiated_value) {
|
||||||
pr_err("Proposer's value list \"%s\" contains"
|
pr_err("Proposer's value list \"%s\" contains"
|
||||||
" no valid values from Acceptor's value list"
|
" no valid values from Acceptor's value list"
|
||||||
" \"%s\".\n", value, param->value);
|
" \"%s\".\n", value, param->value);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
if (iscsi_update_param_value(param, negoitated_value) < 0)
|
if (iscsi_update_param_value(param, negotiated_value) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
} else if (IS_PHASE_DECLARATIVE(param)) {
|
} else if (IS_PHASE_DECLARATIVE(param)) {
|
||||||
if (iscsi_update_param_value(param, value) < 0)
|
if (iscsi_update_param_value(param, value) < 0)
|
||||||
|
|
Loading…
Reference in a new issue