]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - fs/xfs/xfs_discard.c
Merge tag 'iommu-fixes-v5.6-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux.git] / fs / xfs / xfs_discard.c
index cae6136201753ec3c693308111f040f92f7fa5ce..0b8350e84d28a9733dfa4db24e43c9537bc35143 100644 (file)
@@ -45,7 +45,7 @@ xfs_trim_extents(
        xfs_log_force(mp, XFS_LOG_SYNC);
 
        error = xfs_alloc_read_agf(mp, NULL, agno, 0, &agbp);
-       if (error || !agbp)
+       if (error)
                goto out_put_perag;
 
        cur = xfs_allocbt_init_cursor(mp, NULL, agbp, agno, XFS_BTNUM_CNT);