Author: sephe
Date: Tue Aug 30 05:47:58 2016
New Revision: 305054
URL: https://svnweb.freebsd.org/changeset/base/305054

Log:
  hyperv/hn: Remove unnecessary NULL check.
  
  MFC after:    1 week
  Sponsored by: Microsoft
  Differential Revision:        https://reviews.freebsd.org/D7690

Modified:
  head/sys/dev/hyperv/netvsc/hv_rndis_filter.c

Modified: head/sys/dev/hyperv/netvsc/hv_rndis_filter.c
==============================================================================
--- head/sys/dev/hyperv/netvsc/hv_rndis_filter.c        Tue Aug 30 05:35:19 
2016        (r305053)
+++ head/sys/dev/hyperv/netvsc/hv_rndis_filter.c        Tue Aug 30 05:47:58 
2016        (r305054)
@@ -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);
 }
 
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to