[Crosstoolchain-logs] [device-tree-compiler] 125/198: Remove dead	code in util.c
    Hector Oron 
    zumbi at moszumanska.debian.org
       
    Thu Dec  8 17:07:00 UTC 2016
    
    
  
This is an automated email from the git hooks/post-receive script.
zumbi pushed a commit to branch upstream/1.4.x
in repository device-tree-compiler.
commit 821acd4c171b659a682a1aa05da641246a15d51e
Author: Heinrich Schuchardt <xypron.glpk at gmx.de>
Date:   Sat Mar 1 09:11:47 2014 +0100
    Remove dead code in util.c
    
    xrealloc never returns null
    
    Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
---
 util.c | 4 ----
 1 file changed, 4 deletions(-)
diff --git a/util.c b/util.c
index be67836..1ce8b97 100644
--- a/util.c
+++ b/util.c
@@ -219,10 +219,6 @@ int utilfdt_read_err_len(const char *filename, char **buffp, off_t *len)
 		if (offset == bufsize) {
 			bufsize *= 2;
 			buf = xrealloc(buf, bufsize);
-			if (!buf) {
-				ret = ENOMEM;
-				break;
-			}
 		}
 
 		ret = read(fd, &buf[offset], bufsize - offset);
-- 
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