Re: [PATCH v2 5/9] ARM: at91: add soc detection infrastructure

From: Alexandre Belloni
Date: Thu Mar 05 2015 - 10:54:38 EST


On 05/03/2015 at 16:29:26 +0100, Alexander Stein wrote :
> > + if (!regs) {
> > + pr_warn("Could not map DBGU iomem range");
> > + iounmap(regs);
>
> I guess if regs == NULL there is no need to iounmap them, no?
>

Indeed :)

--
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/