]> err.no Git - linux-2.6/commitdiff
[CIFS] fix &&/& typo in cifs_setattr()
authorSteve French <sfrench@us.ibm.com>
Thu, 15 Feb 2007 01:33:18 +0000 (01:33 +0000)
committerSteve French <sfrench@us.ibm.com>
Thu, 15 Feb 2007 01:33:18 +0000 (01:33 +0000)
Thanks to Dirk for pointing this out.

Signed-off-by: Dirk Mueller <dmueller@suse.de>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/cifspdu.h
fs/cifs/inode.c

index 7d9505491b16e2a7fa83147b711fa9f53a0ec848..2498d644827cf4b0dd6da471ea22aaea2ebcb526 100644 (file)
 #define BAD_PROT 0xFFFF
 
 /* SMB command codes */
-/* Some commands have minimal (wct=0,bcc=0), or uninteresting, responses
- (ie which include no useful data other than the SMB error code itself).
- Knowing this helps avoid response buffer allocations and copy in some cases */
+/*
+ * Some commands have minimal (wct=0,bcc=0), or uninteresting, responses
+ * (ie which include no useful data other than the SMB error code itself).
+ * Knowing this helps avoid response buffer allocations and copy in some cases
+ */
 #define SMB_COM_CREATE_DIRECTORY      0x00 /* trivial response */
 #define SMB_COM_DELETE_DIRECTORY      0x01 /* trivial response */
 #define SMB_COM_CLOSE                 0x04 /* triv req/rsp, timestamp ignored */
index 3f5bc83dc3d1eabd97991f18a2cfaf53a0b8a5ba..e203f63c66d5e33c60c0e1325829a3dc6d411cfe 100644 (file)
@@ -1359,7 +1359,7 @@ int cifs_setattr(struct dentry *direntry, struct iattr *attrs)
                and this check ensures that we are not being called from
                sys_utimes in which case we ought to fail the call back to
                the user when the server rejects the call */
-               if((rc) && (attrs->ia_valid &&
+               if((rc) && (attrs->ia_valid &
                         (ATTR_MODE | ATTR_GID | ATTR_UID | ATTR_SIZE)))
                        rc = 0;
        }