aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/vnic
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2020-09-01 21:48:21 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2020-09-01 21:48:21 +0000
commit78ee2406731122a7a6e664ee20d710905e099dc1 (patch)
treeff79a64554edeecb07269d1d2496852c18674fb3 /sys/dev/vnic
parentd918dd1915e2e7dc84f3ff46f04edccad9aac50a (diff)
Notes
Diffstat (limited to 'sys/dev/vnic')
-rw-r--r--sys/dev/vnic/nicvf_main.c1
-rw-r--r--sys/dev/vnic/nicvf_queues.c2
-rw-r--r--sys/dev/vnic/thunder_mdio.c1
3 files changed, 0 insertions, 4 deletions
diff --git a/sys/dev/vnic/nicvf_main.c b/sys/dev/vnic/nicvf_main.c
index 436c07d1ba22..c8b088dee1fa 100644
--- a/sys/dev/vnic/nicvf_main.c
+++ b/sys/dev/vnic/nicvf_main.c
@@ -656,7 +656,6 @@ nicvf_if_transmit(struct ifnet *ifp, struct mbuf *mbuf)
int qidx;
int err = 0;
-
if (__predict_false(qs == NULL)) {
panic("%s: missing queue set for %s", __func__,
device_get_nameunit(nic->dev));
diff --git a/sys/dev/vnic/nicvf_queues.c b/sys/dev/vnic/nicvf_queues.c
index ebef89e31ab1..bb3eacb75fad 100644
--- a/sys/dev/vnic/nicvf_queues.c
+++ b/sys/dev/vnic/nicvf_queues.c
@@ -891,7 +891,6 @@ nicvf_cmp_task(void *arg, int pending)
* process the entire CQ due to Tx or Rx CQ parse error.
*/
taskqueue_enqueue(cq->cmp_taskq, &cq->cmp_task);
-
}
nicvf_clear_intr(nic, NICVF_INTR_CQ, cq->idx);
@@ -1533,7 +1532,6 @@ nicvf_free_resources(struct nicvf *nic)
while (taskqueue_cancel(qs->qs_err_taskq,
&qs->qs_err_task, NULL) != 0) {
taskqueue_drain(qs->qs_err_taskq, &qs->qs_err_task);
-
}
taskqueue_free(qs->qs_err_taskq);
qs->qs_err_taskq = NULL;
diff --git a/sys/dev/vnic/thunder_mdio.c b/sys/dev/vnic/thunder_mdio.c
index 3a4fc9cb809b..92a4fcdabc0e 100644
--- a/sys/dev/vnic/thunder_mdio.c
+++ b/sys/dev/vnic/thunder_mdio.c
@@ -142,7 +142,6 @@ MALLOC_DEFINE(M_THUNDER_MDIO, "ThunderX MDIO",
#define MDIO_LOCK_ASSERT(sc) \
mtx_assert(&(sc)->mtx, MA_OWNED)
-
#define mdio_reg_read(sc, reg) \
bus_read_8((sc)->reg_base, (reg))