Skip to content

Commit

Permalink
Fix a few whitespace and style nits
Browse files Browse the repository at this point in the history
These were noticed when synching with U-Boot's downstream tree.

Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
  • Loading branch information
sjg20 authored and dgibson committed Apr 9, 2017
1 parent e56f2b0 commit 9067ee4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion libfdt/fdt_empty_tree.c
Expand Up @@ -81,4 +81,3 @@ int fdt_create_empty_tree(void *buf, int bufsize)

return fdt_open_into(buf, buf, bufsize);
}

4 changes: 2 additions & 2 deletions libfdt/fdt_ro.c
Expand Up @@ -60,7 +60,7 @@ static int _fdt_nodename_eq(const void *fdt, int offset,
{
const char *p = fdt_offset_ptr(fdt, offset + FDT_TAGSIZE, len+1);

if (! p)
if (!p)
/* short match */
return 0;

Expand Down Expand Up @@ -327,7 +327,7 @@ const void *fdt_getprop_namelen(const void *fdt, int nodeoffset,
const struct fdt_property *prop;

prop = fdt_get_property_namelen(fdt, nodeoffset, name, namelen, lenp);
if (! prop)
if (!prop)
return NULL;

return prop->data;
Expand Down
4 changes: 2 additions & 2 deletions libfdt/fdt_rw.c
Expand Up @@ -207,7 +207,7 @@ static int _fdt_resize_property(void *fdt, int nodeoffset, const char *name,
int err;

*prop = fdt_get_property_w(fdt, nodeoffset, name, &oldlen);
if (! (*prop))
if (!*prop)
return oldlen;

if ((err = _fdt_splice_struct(fdt, (*prop)->data, FDT_TAGALIGN(oldlen),
Expand Down Expand Up @@ -323,7 +323,7 @@ int fdt_delprop(void *fdt, int nodeoffset, const char *name)
FDT_RW_CHECK_HEADER(fdt);

prop = fdt_get_property_w(fdt, nodeoffset, name, &len);
if (! prop)
if (!prop)
return len;

proplen = sizeof(*prop) + FDT_TAGALIGN(len);
Expand Down
4 changes: 2 additions & 2 deletions libfdt/fdt_wip.c
Expand Up @@ -82,7 +82,7 @@ int fdt_setprop_inplace(void *fdt, int nodeoffset, const char *name,
int proplen;

propval = fdt_getprop(fdt, nodeoffset, name, &proplen);
if (! propval)
if (!propval)
return proplen;

if (proplen != len)
Expand All @@ -107,7 +107,7 @@ int fdt_nop_property(void *fdt, int nodeoffset, const char *name)
int len;

prop = fdt_get_property_w(fdt, nodeoffset, name, &len);
if (! prop)
if (!prop)
return len;

_fdt_nop_region(prop, len + sizeof(*prop));
Expand Down

0 comments on commit 9067ee4

Please sign in to comment.