]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/home/homework-luks.c
tree-wide: use ASSERT_PTR more
[thirdparty/systemd.git] / src / home / homework-luks.c
index eea282fe12b348c46f7c36e7652e731e8cd60816..f2dcabd84a20c11a389d0aa97bcd8e69f7ec9020 100644 (file)
@@ -3736,11 +3736,9 @@ static int device_is_gone(HomeSetup *setup) {
 }
 
 static int device_monitor_handler(sd_device_monitor *monitor, sd_device *device, void *userdata) {
-        HomeSetup *setup = userdata;
+        HomeSetup *setup = ASSERT_PTR(userdata);
         int r;
 
-        assert(setup);
-
         if (!device_for_action(device, SD_DEVICE_REMOVE))
                 return 0;