Unused variables and cstyle fix for loader dosfs

Reviewed by:	imp, allanjude
Approved by:	imp (mentor), allanjude (mentor)
Differential Revision:	https://reviews.freebsd.org/D7659
This commit is contained in:
Toomas Soome 2016-08-26 14:58:57 +00:00
parent a5234e8ccb
commit 41638b75ce

View File

@ -439,7 +439,7 @@ dos_readdir(struct open_file *fd, struct dirent *d)
u_char fn[261]; u_char fn[261];
DOS_DIR dd; DOS_DIR dd;
size_t res; size_t res;
u_int chk, i, x, xdn; u_int chk, x, xdn;
int err; int err;
x = chk = 0; x = chk = 0;
@ -598,7 +598,7 @@ lookup(DOS_FS *fs, u_int clus, const char *name, DOS_DE **dep)
u_char lfn[261]; u_char lfn[261];
u_char sfn[13]; u_char sfn[13];
u_int nsec, lsec, xdn, chk, sec, ent, x; u_int nsec, lsec, xdn, chk, sec, ent, x;
int err, ok, i; int err, ok;
if (!clus) if (!clus)
for (ent = 0; ent < 2; ent++) for (ent = 0; ent < 2; ent++)
@ -774,11 +774,11 @@ fatget(DOS_FS *fs, u_int *c)
int err = 0; int err = 0;
if (fat.unit != dd->d_unit) { if (fat.unit != dd->d_unit) {
/* fat cache was changed to another device, dont use it */ /* fat cache was changed to another device, don't use it */
err = ioread(fs, secbyt(fs->lsnfat) + fatoff(fs->fatsz, *c), buf, err = ioread(fs, secbyt(fs->lsnfat) + fatoff(fs->fatsz, *c), buf,
fs->fatsz != 32 ? 2 : 4); fs->fatsz != 32 ? 2 : 4);
if (err) if (err)
return err; return (err);
} else { } else {
offset = fatoff(fs->fatsz, *c); offset = fatoff(fs->fatsz, *c);
nbyte = fs->fatsz != 32 ? 2 : 4; nbyte = fs->fatsz != 32 ? 2 : 4;