flashcp: remove unused variable opts
authorManuel Zerpies <manuel.f.zerpies@ww.stud.uni-erlangen.de>
Thu, 27 Sep 2012 14:06:34 +0000 (16:06 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Thu, 27 Sep 2012 14:06:34 +0000 (16:06 +0200)
Signed-off-by: Manuel Zerpies <manuel.f.zerpies@ww.stud.uni-erlangen.de>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
miscutils/flashcp.c

index 790f9c0..81cde90 100644 (file)
@@ -50,7 +50,6 @@ int flashcp_main(int argc UNUSED_PARAM, char **argv)
        int fd_f, fd_d; /* input file and mtd device file descriptors */
        int i;
        uoff_t erase_count;
-       unsigned opts;
        struct mtd_info_user mtd;
        struct erase_info_user e;
        struct stat statb;
@@ -59,7 +58,7 @@ int flashcp_main(int argc UNUSED_PARAM, char **argv)
        RESERVE_CONFIG_UBUFFER(buf2, BUFSIZE);
 
        opt_complementary = "=2"; /* exactly 2 non-option args: file, dev */
-       opts = getopt32(argv, "v");
+       /*opts =*/ getopt32(argv, "v");
        argv += optind;
 //     filename = *argv++;
 //     devicename = *argv;