]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
dissect: use assert() when no side effect
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 26 Dec 2022 07:35:24 +0000 (16:35 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 26 Dec 2022 07:42:29 +0000 (16:42 +0900)
src/dissect/dissect.c

index 1c62d8eafc9ba895892415a725484521d0ba1e59..a9212f11fbb184b4a878145c7b3f366b3d868e89 100644 (file)
@@ -848,7 +848,7 @@ static int list_print_item(
                 const struct statx *sx,
                 void *userdata) {
 
-        assert_se(path);
+        assert(path);
 
         if (event == RECURSE_DIR_ENTER)
                 printf("%s%s/%s\n", path, ansi_grey(), ansi_normal());
@@ -900,8 +900,8 @@ static int mtree_print_item(
 
         int r;
 
-        assert_se(path);
-        assert_se(sx);
+        assert(path);
+        assert(sx);
 
         if (IN_SET(event, RECURSE_DIR_ENTER, RECURSE_DIR_ENTRY)) {
                 _cleanup_free_ char *escaped = NULL;