fs: fat: remove build warnings 75/165575/1
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Tue, 2 Jan 2018 07:59:23 +0000 (16:59 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Tue, 2 Jan 2018 07:59:29 +0000 (16:59 +0900)
Remove unused-variable build warnings.

Change-Id: Ibecbdfb96299742d9a60669e043ee2ab87a8c469
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
fs/fat/fat_write.c

index 917580c..bfab3fe 100644 (file)
@@ -479,7 +479,6 @@ delete_long_file_name(fsdata *mydata, int curclust, __u8 *cluster,
                                                        PREFETCH_BLOCKS :
                                                        mydata->clust_size);
        __u8 counter = (slotptr->id & ~LAST_LONG_ENTRY_MASK) & 0xff;
-       int idx = 0, cur_position = 0;
 
        if (counter > VFAT_MAXSEQ) {
                debug("Error: VFAT name is too long\n");
@@ -1204,7 +1203,6 @@ static dir_entry *delete_directory_entry(fsdata *mydata, int startsect,
                dir_entry *dentptr;
 
                int i;
-               int mark_cnt;
 
                if (get_cluster(mydata, curclust, get_dentfromdir_block,
                            mydata->clust_size * mydata->sect_size) != 0) {
@@ -1383,7 +1381,7 @@ static int do_fat_rm(const char *filename)
        startsect = mydata->rootdir_sect;
        retdent = delete_directory_entry(mydata, startsect,
                                l_filename, dentptr, 0);
-       int i;
+
        if (retdent) {
                /* Update file size and start_cluster in a directory entry */
                start_cluster = FAT2CPU16(retdent->start);