Merge tag 'linux-kselftest-5.4-rc1.1' of git://git.kernel.org/pub/scm/linux/kernel...
[linux-2.6-block.git] / fs / gfs2 / dir.h
index 0ac2dc8564df15095c499c28afd46d5c8a24f9b8..5b76480c17c9e90c8c8699fd6c5ce931ec493418 100644 (file)
@@ -32,8 +32,7 @@ extern int gfs2_dir_add(struct inode *inode, const struct qstr *filename,
                        const struct gfs2_inode *ip, struct gfs2_diradd *da);
 static inline void gfs2_dir_no_add(struct gfs2_diradd *da)
 {
-       if (da->bh)
-               brelse(da->bh);
+       brelse(da->bh);
        da->bh = NULL;
 }
 extern int gfs2_dir_del(struct gfs2_inode *dip, const struct dentry *dentry);