summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/mtd-tests/flash_speed.c2
-rw-r--r--ubi-utils/ubinfo.c1
2 files changed, 1 insertions, 2 deletions
diff --git a/tests/mtd-tests/flash_speed.c b/tests/mtd-tests/flash_speed.c
index 5721dfb..3489233 100644
--- a/tests/mtd-tests/flash_speed.c
+++ b/tests/mtd-tests/flash_speed.c
@@ -518,7 +518,7 @@ int main(int argc, char **argv)
* the latency difference when performed on different banks (NOR only).
*/
if (speb >= 0 && mtd.subpage_size == 1) {
- long duration_w, duration_r, rww_duration_w, rww_latency_end;
+ long rww_duration_w, rww_latency_end;
long rww_duration_rnw, rww_duration_r_end;
bool rww_r_end_first;
struct thread_arg write_args_peb = {
diff --git a/ubi-utils/ubinfo.c b/ubi-utils/ubinfo.c
index 53519cc..6c5b19e 100644
--- a/ubi-utils/ubinfo.c
+++ b/ubi-utils/ubinfo.c
@@ -427,7 +427,6 @@ int main(int argc, char * const argv[])
if (err)
goto out_libubi;
-out:
libubi_close(libubi);
return 0;