projects
/
profile
/
mobile
/
platform
/
kernel
/
u-boot-tm1.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fs: fat: remove build warnings
[profile/mobile/platform/kernel/u-boot-tm1.git]
/
fs
/
fat
/
fat_write.c
diff --git
a/fs/fat/fat_write.c
b/fs/fat/fat_write.c
index
917580c
..
bfab3fe
100644
(file)
--- 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;
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");
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;
dir_entry *dentptr;
int i;
- int mark_cnt;
if (get_cluster(mydata, curclust, get_dentfromdir_block,
mydata->clust_size * mydata->sect_size) != 0) {
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);
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);
if (retdent) {
/* Update file size and start_cluster in a directory entry */
start_cluster = FAT2CPU16(retdent->start);