summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2015-05-08 11:05:44 +0200
committerUwe Kleine-König <u.kleine-koenig@pengutronix.de>2015-05-29 11:19:20 +0200
commitfc5e023df46d48bd7b641b79ec1786a214ef0ad7 (patch)
treecd29360f6e2ca637ce8f4661631aaebd8c86cbfd
parenta089097575cb0c81d09854c1bdaf8c8aa695bbdd (diff)
downloaddt-utils-fc5e023df46d48bd7b641b79ec1786a214ef0ad7.tar.gz
dt-utils-fc5e023df46d48bd7b641b79ec1786a214ef0ad7.tar.xz
common.h: remove unused variable
This fixes: ./src/dt/common.h: In function ‘read_file’: ./src/dt/common.h:177:6: warning: unused variable ‘ret’ [-Wunused-variable] int ret; ^
-rw-r--r--src/dt/common.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/dt/common.h b/src/dt/common.h
index d049ee7..bfd3c5d 100644
--- a/src/dt/common.h
+++ b/src/dt/common.h
@@ -202,7 +202,6 @@ static inline void *read_file(const char *filename, size_t *size)
int fd;
struct stat s;
void *buf = NULL;
- int ret;
if (stat(filename, &s))
return NULL;