From: Seung-Woo Kim Date: Tue, 2 Jan 2018 07:59:23 +0000 (+0900) Subject: fs: fat: remove build warnings X-Git-Tag: accepted/tizen/5.0/unified/20181106.201708~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;ds=sidebyside;h=a4eddf5b16cd522496e70bc550db6eb6ae756d1c;p=profile%2Fmobile%2Fplatform%2Fkernel%2Fu-boot-tm1.git fs: fat: remove build warnings Remove unused-variable build warnings. Change-Id: Ibecbdfb96299742d9a60669e043ee2ab87a8c469 Signed-off-by: Seung-Woo Kim --- diff --git a/fs/fat/fat_write.c b/fs/fat/fat_write.c index 917580c..bfab3fe 100644 --- a/fs/fat/fat_write.c +++ b/fs/fat/fat_write.c @@ -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);