lkml.org 
[lkml]   [2012]   [Dec]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] clk: mxs: Remove unneeded NULL pointer check
From
Shawn/Mike,

On Wed, Nov 21, 2012 at 7:33 PM, Fabio Estevam <festevam@gmail.com> wrote:
> From: Fabio Estevam <fabio.estevam@freescale.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@freescale.com>

Does this patch look good?


\
 
 \ /
  Last update: 2012-12-11 12:01    [W:0.322 / U:0.180 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site