svn commit: r279311 - head/sys/arm/ti/am335x
Dimitry Andric
dim at FreeBSD.org
Thu Feb 26 07:45:41 UTC 2015
Author: dim
Date: Thu Feb 26 07:45:40 2015
New Revision: 279311
URL: https://svnweb.freebsd.org/changeset/base/279311
Log:
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
MFC after: 3 days
Modified:
head/sys/arm/ti/am335x/am335x_rtc.c
Modified: head/sys/arm/ti/am335x/am335x_rtc.c
==============================================================================
--- head/sys/arm/ti/am335x/am335x_rtc.c Thu Feb 26 07:42:16 2015 (r279310)
+++ head/sys/arm/ti/am335x/am335x_rtc.c Thu Feb 26 07:45:40 2015 (r279311)
@@ -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);
More information about the svn-src-head
mailing list