summaryrefslogtreecommitdiffstats
path: root/common/state
diff options
context:
space:
mode:
authorJuergen Borleis <jbe@pengutronix.de>2017-08-17 11:32:33 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2017-09-06 14:03:01 +0200
commitb67b8d92d770daf90f8efcfdfaa249bf048b53fa (patch)
treef3783fa1397c3b7ab18200e6b6e2cc5e521552bb /common/state
parent84ec1554e2a7b80202c01d6e04201bd5ea986cb7 (diff)
downloadbarebox-b67b8d92d770daf90f8efcfdfaa249bf048b53fa.tar.gz
state: don't use uninitialized variable
Printing 'ret' makes no sense. Signed-off-by: Juergen Borleis <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/state')
-rw-r--r--common/state/backend_storage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/state/backend_storage.c b/common/state/backend_storage.c
index 825db82..c6ebe86 100644
--- a/common/state/backend_storage.c
+++ b/common/state/backend_storage.c
@@ -214,7 +214,7 @@ static int mtd_get_meminfo(const char *path, struct mtd_info_user *meminfo)
fd = open(path, O_RDONLY);
if (fd < 0) {
- pr_err("Failed to open '%s', %d\n", path, ret);
+ pr_err("Failed to open '%s', %d\n", path, fd);
return fd;
}