From 6473a21d8bfe0eb923e4adfd2b536e79ca248081 Mon Sep 17 00:00:00 2001 From: David Gibson Date: Fri, 16 Mar 2018 18:27:03 +1100 Subject: 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 Reviewed-by: Simon Glass Tested-by: Alexey Kardashevskiy Reviewed-by: Alexey Kardashevskiy --- fdtdump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fdtdump.c') diff --git a/fdtdump.c b/fdtdump.c index fa3b561..d12eb35 100644 --- a/fdtdump.c +++ b/fdtdump.c @@ -204,7 +204,7 @@ int main(int argc, char *argv[]) usage("missing input filename"); file = argv[optind]; - buf = utilfdt_read_len(file, &len); + buf = utilfdt_read(file, &len); if (!buf) die("could not read: %s\n", file); -- cgit v1.1