[PATCH] jfs: removed unused return variable from txLog()

[email protected] Wed, 2 Oct 2019 11:57:57 +0530
Newsgroups gmane.comp.file-systems.jfs.general
Message-ID <[email protected]>
From: Aliasgar Surti <[email protected]>

Return variable is used in txLog() without updating it.
Removed the return variable and returned the value
directly.

Signed-off-by: Aliasgar Surti <[email protected]>
---
 fs/jfs/jfs_txnmgr.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/fs/jfs/jfs_txnmgr.c b/fs/jfs/jfs_txnmgr.c
index c8ce7f1bc594..26c7f6a46b07 100644
--- a/fs/jfs/jfs_txnmgr.c
+++ b/fs/jfs/jfs_txnmgr.c
@@ -1367,7 +1367,6 @@ int txCommit(tid_t tid,		/* transaction identifier */
  */
 static int txLog(struct jfs_log * log, struct tblock * tblk, struct commit * cd)
 {
-	int rc = 0;
 	struct inode *ip;
 	lid_t lid;
 	struct tlock *tlck;
@@ -1414,7 +1413,7 @@ static int txLog(struct jfs_log * log, struct tblock * tblk, struct commit * cd)
 		}
 	}
 
-	return rc;
+	return 0;
 }
 
 /*
-- 
2.17.1