From 2f84fd716e3884111318db2461b87b47476e05e2 Mon Sep 17 00:00:00 2001 From: sephe Date: Tue, 30 Aug 2016 05:47:58 +0000 Subject: [PATCH] hyperv/hn: Remove unnecessary NULL check. MFC after: 1 week Sponsored by: Microsoft Differential Revision: https://reviews.freebsd.org/D7690 --- sys/dev/hyperv/netvsc/hv_rndis_filter.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sys/dev/hyperv/netvsc/hv_rndis_filter.c b/sys/dev/hyperv/netvsc/hv_rndis_filter.c index 397a72c762d7..5c81740ba2c8 100644 --- a/sys/dev/hyperv/netvsc/hv_rndis_filter.c +++ b/sys/dev/hyperv/netvsc/hv_rndis_filter.c @@ -839,10 +839,8 @@ hv_rf_init_device(struct hn_softc *sc) 1U << comp->rm_align); } error = 0; - done: - if (xact != NULL) - vmbus_xact_put(xact); + vmbus_xact_put(xact); return (error); } -- 2.41.0