Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 May 2015 14:12:51 +0000 (UTC)
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r283528 - head/sys/dev/ipw
Message-ID:  <201505251412.t4PECpJR052620@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 	}
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201505251412.t4PECpJR052620>