aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifsfs.c
diff options
context:
space:
mode:
authorSteve French <sfrench@us.ibm.com>2008-12-02 19:57:54 -0500
committerSteve French <sfrench@us.ibm.com>2008-12-25 21:29:10 -0500
commit61e748015866e48aff91284e3d300c6e3035a87a (patch)
treef31c94e76a900b9bd7d6f0abf6e1f4c74ac2e51f /fs/cifs/cifsfs.c
parent3de2091ac722e7dbc37d87d9112ab19ec6a871de (diff)
[CIFS] various minor cleanups pointed out by checkpatch script
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/cifsfs.c')
-rw-r--r--fs/cifs/cifsfs.c19
1 files changed, 7 insertions, 12 deletions
diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c
index 061a1dca987d..974c8f0e615e 100644
--- a/fs/cifs/cifsfs.c
+++ b/fs/cifs/cifsfs.c
@@ -347,7 +347,6 @@ cifs_show_options(struct seq_file *s, struct vfsmount *m)
347 if (cifs_sb) { 347 if (cifs_sb) {
348 tcon = cifs_sb->tcon; 348 tcon = cifs_sb->tcon;
349 if (tcon) { 349 if (tcon) {
350/* BB add prepath to mount options displayed */
351 seq_printf(s, ",unc=%s", cifs_sb->tcon->treeName); 350 seq_printf(s, ",unc=%s", cifs_sb->tcon->treeName);
352 if (tcon->ses) { 351 if (tcon->ses) {
353 if (tcon->ses->userName) 352 if (tcon->ses->userName)
@@ -439,9 +438,8 @@ int cifs_xquota_set(struct super_block *sb, int quota_type, qid_t qid,
439 xid = GetXid(); 438 xid = GetXid();
440 if (pTcon) { 439 if (pTcon) {
441 cFYI(1, ("set type: 0x%x id: %d", quota_type, qid)); 440 cFYI(1, ("set type: 0x%x id: %d", quota_type, qid));
442 } else { 441 } else
443 rc = -EIO; 442 rc = -EIO;
444 }
445 443
446 FreeXid(xid); 444 FreeXid(xid);
447 return rc; 445 return rc;
@@ -463,9 +461,8 @@ int cifs_xquota_get(struct super_block *sb, int quota_type, qid_t qid,
463 xid = GetXid(); 461 xid = GetXid();
464 if (pTcon) { 462 if (pTcon) {
465 cFYI(1, ("set type: 0x%x id: %d", quota_type, qid)); 463 cFYI(1, ("set type: 0x%x id: %d", quota_type, qid));
466 } else { 464 } else
467 rc = -EIO; 465 rc = -EIO;
468 }
469 466
470 FreeXid(xid); 467 FreeXid(xid);
471 return rc; 468 return rc;
@@ -486,9 +483,8 @@ int cifs_xstate_set(struct super_block *sb, unsigned int flags, int operation)
486 xid = GetXid(); 483 xid = GetXid();
487 if (pTcon) { 484 if (pTcon) {
488 cFYI(1, ("flags: 0x%x operation: 0x%x", flags, operation)); 485 cFYI(1, ("flags: 0x%x operation: 0x%x", flags, operation));
489 } else { 486 } else
490 rc = -EIO; 487 rc = -EIO;
491 }
492 488
493 FreeXid(xid); 489 FreeXid(xid);
494 return rc; 490 return rc;
@@ -501,17 +497,16 @@ int cifs_xstate_get(struct super_block *sb, struct fs_quota_stat *qstats)
501 struct cifs_sb_info *cifs_sb = CIFS_SB(sb); 497 struct cifs_sb_info *cifs_sb = CIFS_SB(sb);
502 struct cifsTconInfo *pTcon; 498 struct cifsTconInfo *pTcon;
503 499
504 if (cifs_sb) { 500 if (cifs_sb)
505 pTcon = cifs_sb->tcon; 501 pTcon = cifs_sb->tcon;
506 } else { 502 else
507 return -EIO; 503 return -EIO;
508 } 504
509 xid = GetXid(); 505 xid = GetXid();
510 if (pTcon) { 506 if (pTcon) {
511 cFYI(1, ("pqstats %p", qstats)); 507 cFYI(1, ("pqstats %p", qstats));
512 } else { 508 } else
513 rc = -EIO; 509 rc = -EIO;
514 }
515 510
516 FreeXid(xid); 511 FreeXid(xid);
517 return rc; 512 return rc;