VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Markus Elfring <elfring@users.sourceforge.net> 2019-09-03 15:10:05 +0200 committer: Andreas Gruenbacher <agruenba@redhat.com> 2019-09-04 20:22:17 +0200 commit: bccaef90738581038ee609e946f36812bd6fb1b3 parent: 45eb05042d5667408d101a8c056f70a8e8ac27f6
Commit Summary:
gfs2: Delete an unnecessary check before brelse()
Diffstat:
1 file changed, 1 insertion, 2 deletions
diff --git a/fs/gfs2/dir.h b/fs/gfs2/dir.h
index 0ac2dc8564df..5b76480c17c9 100644
--- a/fs/gfs2/dir.h
+++ b/fs/gfs2/dir.h
@@ -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);