aboutsummaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorAttila Fülöp <[email protected]>2021-10-02 20:50:57 +0200
committerGitHub <[email protected]>2021-10-02 12:50:57 -0600
commit60b618a967b1bb60225139a5e687a8cbd38041e0 (patch)
tree9a5c3eb4366801f7c93f9051a71bc99532d6e2c3 /module
parented3a3bdb0d59772ae4b8719cb6ffa690627bf112 (diff)
ZFS: Remove a redundant if condition (#12598)
Commit 0c03d21ac99ebdbe left in a redundant if condition while removing some code. Just remove it. Reviewed-by: George Melikov <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: John Kennedy <[email protected]> Signed-off-by: Attila Fülöp <[email protected]> Closes #12598
Diffstat (limited to 'module')
-rw-r--r--module/zfs/dmu.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/module/zfs/dmu.c b/module/zfs/dmu.c
index 1c4743095..de6bd58ab 100644
--- a/module/zfs/dmu.c
+++ b/module/zfs/dmu.c
@@ -968,9 +968,7 @@ dmu_free_long_object(objset_t *os, uint64_t object)
dmu_tx_mark_netfree(tx);
err = dmu_tx_assign(tx, TXG_WAIT);
if (err == 0) {
- if (err == 0)
- err = dmu_object_free(os, object, tx);
-
+ err = dmu_object_free(os, object, tx);
dmu_tx_commit(tx);
} else {
dmu_tx_abort(tx);