diff options
author | Steve French <sfrench@us.ibm.com> | 2007-08-30 21:10:17 -0400 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2007-08-30 21:10:17 -0400 |
commit | 77159b4df894f9e5e31f709fb0e5e52f6c1b1048 (patch) | |
tree | 75702d1546938f23fbb8ba59285e437078eff1f8 /fs/cifs/inode.c | |
parent | 26f57364d7cdef9d7ebe27c931fff5e4f21ffb1c (diff) |
[CIFS] Fix warnings shown by newer version of sparse
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/inode.c')
-rw-r--r-- | fs/cifs/inode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/cifs/inode.c b/fs/cifs/inode.c index 97ccc513730f..66436f527c3b 100644 --- a/fs/cifs/inode.c +++ b/fs/cifs/inode.c | |||
@@ -1478,7 +1478,7 @@ int cifs_setattr(struct dentry *direntry, struct iattr *attrs) | |||
1478 | atomic_dec(&open_file->wrtPending); | 1478 | atomic_dec(&open_file->wrtPending); |
1479 | cFYI(1, ("SetFSize for attrs rc = %d", rc)); | 1479 | cFYI(1, ("SetFSize for attrs rc = %d", rc)); |
1480 | if ((rc == -EINVAL) || (rc == -EOPNOTSUPP)) { | 1480 | if ((rc == -EINVAL) || (rc == -EOPNOTSUPP)) { |
1481 | int bytes_written; | 1481 | unsigned int bytes_written; |
1482 | rc = CIFSSMBWrite(xid, pTcon, | 1482 | rc = CIFSSMBWrite(xid, pTcon, |
1483 | nfid, 0, attrs->ia_size, | 1483 | nfid, 0, attrs->ia_size, |
1484 | &bytes_written, NULL, NULL, | 1484 | &bytes_written, NULL, NULL, |
@@ -1511,7 +1511,7 @@ int cifs_setattr(struct dentry *direntry, struct iattr *attrs) | |||
1511 | cifs_sb->mnt_cifs_flags & | 1511 | cifs_sb->mnt_cifs_flags & |
1512 | CIFS_MOUNT_MAP_SPECIAL_CHR); | 1512 | CIFS_MOUNT_MAP_SPECIAL_CHR); |
1513 | if (rc == 0) { | 1513 | if (rc == 0) { |
1514 | int bytes_written; | 1514 | unsigned int bytes_written; |
1515 | rc = CIFSSMBWrite(xid, pTcon, | 1515 | rc = CIFSSMBWrite(xid, pTcon, |
1516 | netfid, 0, | 1516 | netfid, 0, |
1517 | attrs->ia_size, | 1517 | attrs->ia_size, |