From: David Oberhollenzer Date: Thu, 22 Jun 2017 11:41:22 +0000 (+0200) Subject: Remove unused variables and functions X-Git-Tag: v2.0.1~7 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=e511691315f6704961a0c8e3a9725f1a589a5c11;p=mtd-utils.git Remove unused variables and functions Signed-off-by: David Oberhollenzer --- diff --git a/lib/libiniparser.c b/lib/libiniparser.c index ba70c08..a6ddcc7 100644 --- a/lib/libiniparser.c +++ b/lib/libiniparser.c @@ -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 diff --git a/nand-utils/nandwrite.c b/nand-utils/nandwrite.c index f29fc67..8f21593 100644 --- a/nand-utils/nandwrite.c +++ b/nand-utils/nandwrite.c @@ -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; diff --git a/tests/ubi-tests/integ.c b/tests/ubi-tests/integ.c index 94d546b..26c2ce5 100644 --- a/tests/ubi-tests/integ.c +++ b/tests/ubi-tests/integ.c @@ -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");