lkml.org 
[lkml]   [2016]   [Aug]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 08/11] net/fsl: use of_property_read_bool
From
Date

> - if (of_get_property(pdev->dev.of_node,
> -     "little-endian", NULL))
> + if (of_property_read_bool(pdev->dev.of_node, "little-
> endian"))
>   priv->is_little_endian = true;
>   else
>   priv->is_little_endian = false;
>

Perhaps, while changing this, that'd be better as

priv->is_little_endian = of_property_read_bool(...);

Obviously that would've worked before, but now it'd be even easier to
understand, it seems.

johannes

\
 
 \ /
  Last update: 2016-08-05 12:21    [W:0.203 / U:0.436 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site