Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/iscsi Whitespace, braces.
details: https://anonhg.NetBSD.org/src/rev/dfce375c93aa
branches: trunk
changeset: 345694:dfce375c93aa
user: mlelstv <mlelstv%NetBSD.org@localhost>
date: Sun Jun 05 05:40:29 2016 +0000
description:
Whitespace, braces.
diffstat:
sys/dev/iscsi/iscsi_rcv.c | 8 +++++---
sys/dev/iscsi/iscsi_send.c | 4 +---
2 files changed, 6 insertions(+), 6 deletions(-)
diffs (55 lines):
diff -r ee20d55f987a -r dfce375c93aa sys/dev/iscsi/iscsi_rcv.c
--- a/sys/dev/iscsi/iscsi_rcv.c Sun Jun 05 05:36:57 2016 +0000
+++ b/sys/dev/iscsi/iscsi_rcv.c Sun Jun 05 05:40:29 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: iscsi_rcv.c,v 1.17 2016/06/05 05:31:43 mlelstv Exp $ */
+/* $NetBSD: iscsi_rcv.c,v 1.18 2016/06/05 05:40:29 mlelstv Exp $ */
/*-
* Copyright (c) 2004,2005,2006,2011 The NetBSD Foundation, Inc.
@@ -127,16 +127,18 @@
return NULL;
cidx = itt & 0xff;
- if (cidx >= CCBS_PER_SESSION) {
+ if (cidx >= CCBS_PER_SESSION)
return NULL;
- }
+
ccb = &conn->session->ccb[cidx];
+
if (ccb->ITT != itt || ccb->disp <= CCBDISP_BUSY) {
DEBC(conn, 0,
("ccb_from_itt: received invalid CCB itt %08x != %08x\n",
itt, ccb->ITT));
return NULL;
}
+
return ccb;
}
diff -r ee20d55f987a -r dfce375c93aa sys/dev/iscsi/iscsi_send.c
--- a/sys/dev/iscsi/iscsi_send.c Sun Jun 05 05:36:57 2016 +0000
+++ b/sys/dev/iscsi/iscsi_send.c Sun Jun 05 05:40:29 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: iscsi_send.c,v 1.25 2016/06/05 05:36:57 mlelstv Exp $ */
+/* $NetBSD: iscsi_send.c,v 1.26 2016/06/05 05:40:29 mlelstv Exp $ */
/*-
* Copyright (c) 2004,2005,2006,2011 The NetBSD Foundation, Inc.
@@ -211,7 +211,6 @@
pdu->save_iovec [0].iov_len =
(conn->HeaderDigest) ? BHS_SIZE + 4 : BHS_SIZE;
-
/* link new PDU into old CCB */
ccb->pdu_waiting = pdu;
/* link new CCB into new connection */
@@ -1413,7 +1412,6 @@
totlen = conn->max_firstdata ? totlen - len : 0;
}
}
-
if (!totlen)
pdu->Flags |= FLAG_FINAL;
pdu->Flags |= ccb->tag;
Home |
Main Index |
Thread Index |
Old Index