diff --git a/util/cleanup.h b/util/cleanup.h index 0819523d7d..f2acde0d3d 100644 --- a/util/cleanup.h +++ b/util/cleanup.h @@ -38,8 +38,7 @@ static inline void cleanup_fd(int *fd) static inline void cleanup_nvme_root(nvme_root_t *r) { - if (r) - nvme_free_tree(*r); + nvme_free_tree(*r); } #define _cleanup_nvme_root_ __cleanup__(cleanup_nvme_root)