aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/iscsi
diff options
context:
space:
mode:
authorEdward Tomasz Napierala <trasz@FreeBSD.org>2014-11-03 11:05:23 +0000
committerEdward Tomasz Napierala <trasz@FreeBSD.org>2014-11-03 11:05:23 +0000
commit08c5dbaeb06e04e56e715d5c203a90a0acf979fe (patch)
treef7d0c1585660f6936c4b3a9acaf25f9b2c737bf3 /sys/dev/iscsi
parent4a60312011b6ad669a64e728eeee8c61bb322084 (diff)
Notes
Diffstat (limited to 'sys/dev/iscsi')
-rw-r--r--sys/dev/iscsi/icl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/iscsi/icl.c b/sys/dev/iscsi/icl.c
index 5a6436a646cf8..721454de3243a 100644
--- a/sys/dev/iscsi/icl.c
+++ b/sys/dev/iscsi/icl.c
@@ -147,7 +147,7 @@ icl_conn_receive(struct icl_conn *ic, size_t len)
}
static struct icl_pdu *
-icl_pdu_new(struct icl_conn *ic, int flags)
+icl_pdu_new_empty(struct icl_conn *ic, int flags)
{
struct icl_pdu *ip;
@@ -192,7 +192,7 @@ icl_pdu_new_bhs(struct icl_conn *ic, int flags)
{
struct icl_pdu *ip;
- ip = icl_pdu_new(ic, flags);
+ ip = icl_pdu_new_empty(ic, flags);
if (ip == NULL)
return (NULL);
@@ -542,7 +542,7 @@ icl_conn_receive_pdu(struct icl_conn *ic, size_t *availablep)
if (ic->ic_receive_state == ICL_CONN_STATE_BHS) {
KASSERT(ic->ic_receive_pdu == NULL,
("ic->ic_receive_pdu != NULL"));
- request = icl_pdu_new(ic, M_NOWAIT);
+ request = icl_pdu_new_empty(ic, M_NOWAIT);
if (request == NULL) {
ICL_DEBUG("failed to allocate PDU; "
"dropping connection");