summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2017-02-16 13:47:18 +0200
committerGordon Ross <gwr@nexenta.com>2017-06-05 10:03:25 -0400
commitf172c8ab1c246e78ba62a5aae1364ffcefe84862 (patch)
tree73a6af9cd9cccb591cb30f7e48912f1139a21899 /usr/src
parent134035c17d79cc72f53900ba0ee97e48f01781fb (diff)
downloadillumos-gate-f172c8ab1c246e78ba62a5aae1364ffcefe84862.tar.gz
8286 chxge: misleading-indentation
Reviewed by: Andrew Stormont <andyjstormont@gmail.com> Reviewed by: Yuri Pankov <yuripv@gmx.com> Reviewed by: Robert Mustacchi <rm@joyent.com> Approved by: Gordon Ross <gordon.w.ross@gmail.com>
Diffstat (limited to 'usr/src')
-rw-r--r--usr/src/uts/common/io/chxge/sge.c20
1 files changed, 9 insertions, 11 deletions
diff --git a/usr/src/uts/common/io/chxge/sge.c b/usr/src/uts/common/io/chxge/sge.c
index d61b23712e..8d7ab572b3 100644
--- a/usr/src/uts/common/io/chxge/sge.c
+++ b/usr/src/uts/common/io/chxge/sge.c
@@ -30,8 +30,6 @@
* Copyright (C) 2003-2005 Chelsio Communications. All rights reserved.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#include <sys/types.h>
#include <sys/param.h>
#include <sys/cmn_err.h>
@@ -237,11 +235,12 @@ t1_espi_workaround(ch_t *adapter)
seop = t1_espi_get_mon(adapter, 0x930, 0);
if ((seop & 0xfff0fff) == 0xfff) {
/* after first arp */
- if (sge->pskb)
+ if (sge->pskb) {
rv = pe_start(adapter, (mblk_t *)sge->pskb,
CH_ARP);
if (!rv)
sge->intr_cnt.arp_sent++;
+ }
}
}
#ifdef HOST_PAUSE
@@ -301,7 +300,7 @@ uint32_t sge_cmdq_send_fail;
int
sge_data_out(pesge* sge, int qid, mblk_t *m0,
- cmdQ_ce_t *cmp, int count, uint32_t flg)
+ cmdQ_ce_t *cmp, int count, uint32_t flg)
{
struct cmdQ *Q = &sge->cmdQ[qid];
ddi_dma_handle_t dh = (ddi_dma_handle_t)sge->cmdQ[qid].cq_dh;
@@ -915,13 +914,12 @@ t1_sge_rx(pesge *sge, struct freelQ *Q, unsigned int len, unsigned int offload)
if (likely(toe_running(adapter))) {
/* sends pkt upstream to toe layer */
if (useit) {
- if (sz == SGE_SM_BUF_SZ(adapter)) {
- atomic_add(1,
- &buffers_in_use[adapter->ch_sm_index]);
- } else {
- atomic_add(1,
- &buffers_in_use[adapter->ch_big_index]);
- }
+ uint_t index;
+ if (sz == SGE_SM_BUF_SZ(adapter))
+ index = adapter->ch_sm_index;
+ else
+ index = adapter->ch_big_index;
+ atomic_add(1, &buffers_in_use[index]);
}
if (adapter->toe_rcv)
adapter->toe_rcv(adapter->ch_toeinst, skb);