From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bob Peterson Date: Wed, 2 Sep 2015 10:01:42 -0400 (EDT) Subject: [Cluster-devel] [GFS2 PATCH] GFS2: Remove unnecessary if In-Reply-To: <1933320036.21474733.1441202466266.JavaMail.zimbra@redhat.com> Message-ID: <1379223485.21475060.1441202502807.JavaMail.zimbra@redhat.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi, This patch removes an unnecessary if in function gfs2_glock_put. Signed-off-by: Bob Peterson --- diff --git a/fs/gfs2/glock.c b/fs/gfs2/glock.c index ae3f846..9bd1244 100644 --- a/fs/gfs2/glock.c +++ b/fs/gfs2/glock.c @@ -170,8 +170,7 @@ void gfs2_glock_put(struct gfs2_glock *gl) gfs2_glock_remove_from_lru(gl); spin_unlock(&gl->gl_lockref.lock); - if (gl->gl_node.next != NULL) - rhashtable_remove_fast(&gl_hash_table, &gl->gl_node, ht_parms); + rhashtable_remove_fast(&gl_hash_table, &gl->gl_node, ht_parms); GLOCK_BUG_ON(gl, !list_empty(&gl->gl_holders)); GLOCK_BUG_ON(gl, mapping && mapping->nrpages); trace_gfs2_glock_put(gl);