[PATCH 3/3] mtd:Remove the no no longer required function, memcmpb in the file inftlmount.c
Nicholas Krause
xerofoify at gmail.com
Tue Mar 3 21:01:25 PST 2015
Removes the no required function,memcmpd as it's only caller check_free_sectors
as been removed in the previous patch in this patch series.
Signed-off-by: Nicholas Krause <xerofoify at gmail.com>
---
drivers/mtd/inftlmount.c | 10 ----------
1 file changed, 10 deletions(-)
diff --git a/drivers/mtd/inftlmount.c b/drivers/mtd/inftlmount.c
index f9f1511..734d318 100644
--- a/drivers/mtd/inftlmount.c
+++ b/drivers/mtd/inftlmount.c
@@ -319,16 +319,6 @@ static int find_boot_record(struct INFTLrecord *inftl)
return -1;
}
-static int memcmpb(void *a, int c, int n)
-{
- int i;
- for (i = 0; i < n; i++) {
- if (c != ((unsigned char *)a)[i])
- return 1;
- }
- return 0;
-}
-
int INFTL_formatblock(struct INFTLrecord *inftl, int block)
{
size_t retlen;
--
2.1.0
More information about the linux-mtd
mailing list