[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20121211132037.GC10128@S2101-09.ap.freescale.net>
Date: Tue, 11 Dec 2012 21:20:39 +0800
From: Shawn Guo <shawn.guo@...aro.org>
To: Fabio Estevam <festevam@...il.com>
CC: <mturquette@...aro.org>, <linux-kernel@...r.kernel.org>,
Fabio Estevam <fabio.estevam@...escale.com>
Subject: Re: [PATCH] clk: mxs: Remove unneeded NULL pointer check
On Tue, Dec 11, 2012 at 08:33:34AM -0200, Fabio Estevam wrote:
> Shawn/Mike,
>
> On Wed, Nov 21, 2012 at 7:33 PM, Fabio Estevam <festevam@...il.com> wrote:
> > From: Fabio Estevam <fabio.estevam@...escale.com>
> >
> > mxs platform has been converted to device tree.
> >
> > There is no need to check if np is NULL after doing:
> >
> > np = of_find_compatible_node(NULL, NULL, "fsl,imx[23/28]-clkctrl");
> >
> > ,as it will always be non-NULL.
> >
> > Signed-off-by: Fabio Estevam <fabio.estevam@...escale.com>
>
> Does this patch look good?
Hmm, technically the check is still valid, as np can be NULL if
the clkctrl node with correct compatible string is not present.
Shawn
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists