Date: Sun, 1 Mar 2015 00:57:02 +0000 (UTC) From: Dimitry Andric <dim@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r279462 - stable/10/sys/arm/ti/am335x Message-ID: <201503010057.t210v2Xe000735@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: dim Date: Sun Mar 1 00:57:01 2015 New Revision: 279462 URL: https://svnweb.freebsd.org/changeset/base/279462 Log: MFC r279311: In sys/arm/ti/am335x/am335x_rtc.c, fix a clang 3.6.0 warning about am33x_rtc_softc::sc_irq_res (which is an array) never being NULL. Submitted by: andrew Modified: stable/10/sys/arm/ti/am335x/am335x_rtc.c Directory Properties: stable/10/ (props changed) Modified: stable/10/sys/arm/ti/am335x/am335x_rtc.c ============================================================================== --- stable/10/sys/arm/ti/am335x/am335x_rtc.c Sun Mar 1 00:52:41 2015 (r279461) +++ stable/10/sys/arm/ti/am335x/am335x_rtc.c Sun Mar 1 00:57:01 2015 (r279462) @@ -137,7 +137,7 @@ am335x_rtc_detach(device_t dev) struct am335x_rtc_softc *sc; sc = device_get_softc(dev); - if (sc->sc_irq_res) + if (sc->sc_irq_res[0] != NULL) bus_release_resources(dev, am335x_rtc_irq_spec, sc->sc_irq_res); if (sc->sc_mem_res) bus_release_resource(dev, SYS_RES_MEMORY, 0, sc->sc_mem_res);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201503010057.t210v2Xe000735>