From: Jeff Layton Date: Mon, 5 Nov 2012 11:47:00 +0000 (-0500) Subject: cifs: move num_subauth check inside of CONFIG_CIFS_DEBUG2 check in parse_sid() X-Git-Tag: next-20121106~93^2~14 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a58901bd1f0059961a80fa167e278b3b51e514fe;p=karo-tx-linux.git cifs: move num_subauth check inside of CONFIG_CIFS_DEBUG2 check in parse_sid() Reviewed-by: Shirish Pargaonkar Signed-off-by: Jeff Layton --- diff --git a/fs/cifs/cifsacl.c b/fs/cifs/cifsacl.c index b45ec7426ae3..d35579a1640a 100644 --- a/fs/cifs/cifsacl.c +++ b/fs/cifs/cifsacl.c @@ -987,8 +987,8 @@ static int parse_sid(struct cifs_sid *psid, char *end_of_acl) return -EINVAL; } - if (psid->num_subauth) { #ifdef CONFIG_CIFS_DEBUG2 + if (psid->num_subauth) { int i; cFYI(1, "SID revision %d num_auth %d", psid->revision, psid->num_subauth); @@ -1002,8 +1002,8 @@ static int parse_sid(struct cifs_sid *psid, char *end_of_acl) num auths and therefore go off the end */ cFYI(1, "RID 0x%x", le32_to_cpu(psid->sub_auth[psid->num_subauth-1])); -#endif } +#endif return 0; }