]> www.infradead.org Git - mtd-utils.git/commitdiff
Remove unused variables and functions
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>
Thu, 22 Jun 2017 11:41:22 +0000 (13:41 +0200)
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>
Wed, 28 Jun 2017 08:27:35 +0000 (10:27 +0200)
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
lib/libiniparser.c
nand-utils/nandwrite.c
tests/ubi-tests/integ.c

index ba70c089a651d8a5e802f50e3c4599cb24386317..a6ddcc794dc1207145df830b959dc91e08fe00a5 100644 (file)
@@ -387,24 +387,6 @@ int iniparser_find_entry(
     return found ;
 }
 
-/*-------------------------------------------------------------------------*/
-/**
-  @brief    Set an entry in a dictionary.
-  @param    ini     Dictionary to modify.
-  @param    entry   Entry to modify (entry name)
-  @param    val     New value to associate to the entry.
-  @return   int 0 if Ok, -1 otherwise.
-
-  If the given entry can be found in the dictionary, it is modified to
-  contain the provided value. If it cannot be found, -1 is returned.
-  It is Ok to set val to NULL.
- */
-/*--------------------------------------------------------------------------*/
-int iniparser_set(dictionary * ini, char * entry, char * val)
-{
-    return dictionary_set(ini, strlwc(entry), val) ;
-}
-
 /*-------------------------------------------------------------------------*/
 /**
   @brief    Delete an entry in a dictionary
index f29fc6717caecad6443b9c48a72f19d18aaa114a..8f21593253996c447e4642df550726ff829d56b9 100644 (file)
@@ -261,8 +261,6 @@ static int is_virt_block_bad(struct mtd_dev_info *mtd, int fd,
  */
 int main(int argc, char * const argv[])
 {
-       int allffs;
-       int ii;
        int fd = -1;
        int ifd = -1;
        int pagelen;
index 94d546bb645ce909fc4debf4a6215d58e842b51c..26c2ce5f0ff816accdb78595261156f96a515fd4 100644 (file)
@@ -561,8 +561,6 @@ static void get_ubi_devices_info(void)
 
 static void load_ubi(void)
 {
-       int ret;
-
        if (system("modprobe -r ubi"))
                error_exit("Failed to unload UBI module");