svn commit: r283528 - head/sys/dev/ipw

Gleb Smirnoff glebius at FreeBSD.org
Mon May 25 14:12:51 UTC 2015


Author: glebius
Date: Mon May 25 14:12:50 2015
New Revision: 283528
URL: https://svnweb.freebsd.org/changeset/base/283528

Log:
  Don't compare array to NULL.
  
  Found by:	clang

Modified:
  head/sys/dev/ipw/if_ipw.c

Modified: head/sys/dev/ipw/if_ipw.c
==============================================================================
--- head/sys/dev/ipw/if_ipw.c	Mon May 25 13:51:13 2015	(r283527)
+++ head/sys/dev/ipw/if_ipw.c	Mon May 25 14:12:50 2015	(r283528)
@@ -752,11 +752,8 @@ ipw_release(struct ipw_softc *sc)
 	}
 
 	if (sc->tbd_dmat != NULL) {
-		if (sc->stbd_list != NULL) {
-			bus_dmamap_unload(sc->tbd_dmat, sc->tbd_map);
-			bus_dmamem_free(sc->tbd_dmat, sc->tbd_list,
-			    sc->tbd_map);
-		}
+		bus_dmamap_unload(sc->tbd_dmat, sc->tbd_map);
+		bus_dmamem_free(sc->tbd_dmat, sc->tbd_list, sc->tbd_map);
 		bus_dma_tag_destroy(sc->tbd_dmat);
 	}
 


More information about the svn-src-all mailing list