cluster-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
* [Cluster-devel] [GFS2 patch] gfs2: minor cleanup: remove unneeded variable ret in gfs2_jdata_writepage
       [not found] <1387805528.286081.1576001299465.JavaMail.zimbra@redhat.com>
@ 2019-12-10 18:09 ` Bob Peterson
  0 siblings, 0 replies; only message in thread
From: Bob Peterson @ 2019-12-10 18:09 UTC (permalink / raw)
  To: cluster-devel.redhat.com

Hi,

This patch simply removes variable ret, which is used to store the return
code of its call to __gfs2_jdata_writepage, in favor of just returning the
result directly.

Signed-off-by: Bob Peterson <rpeterso@redhat.com>
---
 fs/gfs2/aops.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/fs/gfs2/aops.c b/fs/gfs2/aops.c
index 9c6df721321a..ba83b49ce18c 100644
--- a/fs/gfs2/aops.c
+++ b/fs/gfs2/aops.c
@@ -183,14 +183,12 @@ static int gfs2_jdata_writepage(struct page *page, struct writeback_control *wbc
 	struct inode *inode = page->mapping->host;
 	struct gfs2_inode *ip = GFS2_I(inode);
 	struct gfs2_sbd *sdp = GFS2_SB(inode);
-	int ret;
 
 	if (gfs2_assert_withdraw(sdp, gfs2_glock_is_held_excl(ip->i_gl)))
 		goto out;
 	if (PageChecked(page) || current->journal_info)
 		goto out_ignore;
-	ret = __gfs2_jdata_writepage(page, wbc);
-	return ret;
+	return __gfs2_jdata_writepage(page, wbc);
 
 out_ignore:
 	redirty_page_for_writepage(wbc, page);



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2019-12-10 18:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1387805528.286081.1576001299465.JavaMail.zimbra@redhat.com>
2019-12-10 18:09 ` [Cluster-devel] [GFS2 patch] gfs2: minor cleanup: remove unneeded variable ret in gfs2_jdata_writepage Bob Peterson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).