[Crosstoolchain-logs] [device-tree-compiler] 64/357: libfdt: Remove unused _ptr_offset() function

Hector Oron zumbi at moszumanska.debian.org
Thu Dec 8 17:05:50 UTC 2016


This is an automated email from the git hooks/post-receive script.

zumbi pushed a commit to branch upstream/1.3.x
in repository device-tree-compiler.

commit 6ae4de5c81eac62a0c658ef302c850da3f107092
Author: David Gibson <david at gibson.dropbear.id.au>
Date:   Tue Dec 12 12:48:15 2006 +1100

    libfdt: Remove unused _ptr_offset() function
    
    The (internal use) function _ptr_offset() is never used.  Delete it.
---
 libfdt_internal.h | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/libfdt_internal.h b/libfdt_internal.h
index b3da790..8ea1ed0 100644
--- a/libfdt_internal.h
+++ b/libfdt_internal.h
@@ -26,13 +26,6 @@
 #define memeq(p, q, n)	(memcmp((p), (q), (n)) == 0)
 #define streq(p, q)	(strcmp((p), (q)) == 0)
 
-static inline int _ptr_offset(struct fdt_header *fdt, void *p)
-{
-	void *blob = fdt;
-
-	return (p - blob) - fdt_off_dt_struct(fdt);
-}
-
 int _fdt_check_header(const struct fdt_header *fdt);
 uint32_t _fdt_next_tag(const struct fdt_header *fdt, int startoffset, int *nextoffset);
 const char *_fdt_find_string(const char *strtab, int tabsize, const char *s);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/crosstoolchain/device-tree-compiler.git



More information about the Crosstoolchain-logs mailing list