target: Misc retval cleanups
Bubble-up retval from iscsi_update_param_value() and iscsit_ta_authentication(). Other very small retval cleanups. Signed-off-by: Andy Grover <agrover@redhat.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
This commit is contained in:

committed by
Nicholas Bellinger

parent
2dca673b46
commit
617a0c2eb3
@@ -681,7 +681,7 @@ int iscsi_update_param_value(struct iscsi_param *param, char *value)
|
||||
param->value = kzalloc(strlen(value) + 1, GFP_KERNEL);
|
||||
if (!param->value) {
|
||||
pr_err("Unable to allocate memory for value.\n");
|
||||
return -1;
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
memcpy(param->value, value, strlen(value));
|
||||
|
Reference in New Issue
Block a user