aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/netmisc.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/cifs/netmisc.c')
-rw-r--r--fs/cifs/netmisc.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/fs/cifs/netmisc.c b/fs/cifs/netmisc.c
index f06359cb22ee..4d35c034755a 100644
--- a/fs/cifs/netmisc.c
+++ b/fs/cifs/netmisc.c
@@ -793,8 +793,8 @@ map_smb_to_linux_error(struct smb_hdr *smb, int logErr)
793 if (smberrclass == ERRDOS) { /* 1 byte field no need to byte reverse */ 793 if (smberrclass == ERRDOS) { /* 1 byte field no need to byte reverse */
794 for (i = 0; 794 for (i = 0;
795 i < 795 i <
796 sizeof (mapping_table_ERRDOS) / 796 sizeof(mapping_table_ERRDOS) /
797 sizeof (struct smb_to_posix_error); i++) { 797 sizeof(struct smb_to_posix_error); i++) {
798 if (mapping_table_ERRDOS[i].smb_err == 0) 798 if (mapping_table_ERRDOS[i].smb_err == 0)
799 break; 799 break;
800 else if (mapping_table_ERRDOS[i].smb_err == 800 else if (mapping_table_ERRDOS[i].smb_err ==
@@ -807,8 +807,8 @@ map_smb_to_linux_error(struct smb_hdr *smb, int logErr)
807 } else if (smberrclass == ERRSRV) { /* server class of error codes */ 807 } else if (smberrclass == ERRSRV) { /* server class of error codes */
808 for (i = 0; 808 for (i = 0;
809 i < 809 i <
810 sizeof (mapping_table_ERRSRV) / 810 sizeof(mapping_table_ERRSRV) /
811 sizeof (struct smb_to_posix_error); i++) { 811 sizeof(struct smb_to_posix_error); i++) {
812 if (mapping_table_ERRSRV[i].smb_err == 0) 812 if (mapping_table_ERRSRV[i].smb_err == 0)
813 break; 813 break;
814 else if (mapping_table_ERRSRV[i].smb_err == 814 else if (mapping_table_ERRSRV[i].smb_err ==
@@ -837,14 +837,14 @@ map_smb_to_linux_error(struct smb_hdr *smb, int logErr)
837unsigned int 837unsigned int
838smbCalcSize(struct smb_hdr *ptr) 838smbCalcSize(struct smb_hdr *ptr)
839{ 839{
840 return (sizeof (struct smb_hdr) + (2 * ptr->WordCount) + 840 return (sizeof(struct smb_hdr) + (2 * ptr->WordCount) +
841 2 /* size of the bcc field */ + BCC(ptr)); 841 2 /* size of the bcc field */ + BCC(ptr));
842} 842}
843 843
844unsigned int 844unsigned int
845smbCalcSize_LE(struct smb_hdr *ptr) 845smbCalcSize_LE(struct smb_hdr *ptr)
846{ 846{
847 return (sizeof (struct smb_hdr) + (2 * ptr->WordCount) + 847 return (sizeof(struct smb_hdr) + (2 * ptr->WordCount) +
848 2 /* size of the bcc field */ + le16_to_cpu(BCC_LE(ptr))); 848 2 /* size of the bcc field */ + le16_to_cpu(BCC_LE(ptr)));
849} 849}
850 850