aboutsummaryrefslogtreecommitdiff
path: root/fdtput.c
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2018-03-16 18:27:03 +1100
committerDavid Gibson <david@gibson.dropbear.id.au>2018-06-07 11:48:20 +1000
commit6473a21d8bfe0eb923e4adfd2b536e79ca248081 (patch)
tree871dc02ffa021a469b8b8dc95fed5841926ac69b /fdtput.c
parentd5db5382c5e583d184e4484662eb87f1999d4a46 (diff)
downloaddtc-6473a21d8bfe0eb923e4adfd2b536e79ca248081.zip
dtc-6473a21d8bfe0eb923e4adfd2b536e79ca248081.tar.gz
dtc-6473a21d8bfe0eb923e4adfd2b536e79ca248081.tar.bz2
Consolidate utilfdt_read_len() variants
There are no less than _four_ variants on utilfdt_read() which is a bit excessive. The _len() variants are particularly pointless, since we can achieve the same thing with very little extra verbosity by using the usual convention of ignoring return parameters if they're NULL. So, get rid of them (we keep the shorter names without _len, but add now-optional len parameters). Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Reviewed-by: Simon Glass <sjg@chromium.org> Tested-by: Alexey Kardashevskiy <aik@ozlabs.ru> Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Diffstat (limited to 'fdtput.c')
-rw-r--r--fdtput.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fdtput.c b/fdtput.c
index 72a0058..9e739bd 100644
--- a/fdtput.c
+++ b/fdtput.c
@@ -333,7 +333,7 @@ static int do_fdtput(struct display_info *disp, const char *filename,
char *node;
int len, ret = 0;
- blob = utilfdt_read(filename);
+ blob = utilfdt_read(filename, NULL);
if (!blob)
return -1;