From b64454b7dd18e7dbd401eaa710fd66bc21a4b57d Mon Sep 17 00:00:00 2001 From: Tuan PM Date: Thu, 12 Jan 2017 10:55:21 +0700 Subject: [PATCH] remove unused variable --- extras/spiffs/mkspiffs/mkspiffs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/extras/spiffs/mkspiffs/mkspiffs.c b/extras/spiffs/mkspiffs/mkspiffs.c index cbebb02..9ed6a7d 100644 --- a/extras/spiffs/mkspiffs/mkspiffs.c +++ b/extras/spiffs/mkspiffs/mkspiffs.c @@ -178,7 +178,7 @@ static bool process_directory(const char *direcotry) { DIR *dp; struct dirent *ep; - char path[256], *filename, *file_ptr; + char path[256], *filename; dp = opendir(direcotry); if (dp != NULL) { @@ -198,7 +198,6 @@ static bool process_directory(const char *direcotry) continue; // not a regular file } sprintf(path, "%s/%s", direcotry, ep->d_name); - filename = path; filename = strchr(path, '/'); filename = filename ? &filename[1] : path;