Skip to content

Commit

Permalink
[CIFS] remove compile warnings when debug disabled
Browse files Browse the repository at this point in the history
Signed-off-by: Steve French <sfrench@us.ibm.com>
  • Loading branch information
Steve French committed Oct 12, 2007
1 parent 297647c commit 8f18c13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/cifs/cifsacl.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ int compare_sids(struct cifs_sid *ctsid, struct cifs_sid *cwsid)

static void parse_ace(struct cifs_ace *pace, char *end_of_acl)
{
int i;
int num_subauth;

/* validate that we do not go past end of acl */
Expand All @@ -145,6 +144,7 @@ static void parse_ace(struct cifs_ace *pace, char *end_of_acl)
num_subauth = cpu_to_le32(pace->num_subauth);
if (num_subauth) {
#ifdef CONFIG_CIFS_DEBUG2
int i;
cFYI(1, ("ACE revision %d num_subauth %d",
pace->revision, pace->num_subauth));
for (i = 0; i < num_subauth; ++i) {
Expand Down Expand Up @@ -255,7 +255,6 @@ static void parse_dacl(struct cifs_acl *pdacl, char *end_of_acl)

static int parse_sid(struct cifs_sid *psid, char *end_of_acl)
{
int i;
int num_subauth;

/* BB need to add parm so we can store the SID BB */
Expand All @@ -269,6 +268,7 @@ static int parse_sid(struct cifs_sid *psid, char *end_of_acl)
num_subauth = cpu_to_le32(psid->num_subauth);
if (num_subauth) {
#ifdef CONFIG_CIFS_DEBUG2
int i;
cFYI(1, ("SID revision %d num_auth %d First subauth 0x%x",
psid->revision, psid->num_subauth, psid->sub_auth[0]));

Expand Down

0 comments on commit 8f18c13

Please sign in to comment.