Skip to contentSkip to conversation

xfs: remove redundant ASSERT in __xfs_bunmapi

PATCH New [email protected] 1 participant 1 message Dec 1 XFS filesystem

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 xfs: remove redundant ASSERT in __xfs_bunmapi

From: Jianyun Gao <[email protected]>

The ASSERT right after checking if_format == XFS_DINODE_FMT_BTREE is tautological. Remove it.

---
Changes since v1:
- Shorten the commit message and drop the Fixes tag per Christoph Hellwig.

v1: https://lore.kernel.org/lkml/[email protected]/

 fs/xfs/libxfs/xfs_bmap.c | 1 -
 1 file changed, 1 deletion(-)
fs/xfs/libxfs/xfs_bmap.c +0 -1
index dcd5faf3428e..f2627ec2dd24 100644
@@ -5166,7 +5166,6 @@ __xfs_bunmapi(
 
 	logflags = 0;
 	if (ifp->if_format == XFS_DINODE_FMT_BTREE) {
-		ASSERT(ifp->if_format == XFS_DINODE_FMT_BTREE);
 		cur = xfs_bmbt_init_cursor(mp, tp, ip, whichfork);
 	} else
 		cur = NULL;
Signature · 1 line
2.34.1