diff options
author | David Tardon <dtardon@redhat.com> | 2022-08-09 14:35:15 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2022-09-13 08:13:27 +0200 |
commit | 995340074e554b4bf4a0fdb0cb7436692c5a4ffd (patch) | |
tree | ca3ee001db3e608ee80478f42fea9c3b409f1b7b /src/udev/net | |
parent | Merge pull request #23087 from yuwata/udev-watch (diff) | |
download | systemd-995340074e554b4bf4a0fdb0cb7436692c5a4ffd.tar.xz systemd-995340074e554b4bf4a0fdb0cb7436692c5a4ffd.zip |
tree-wide: use ASSERT_PTR more
Diffstat (limited to 'src/udev/net')
-rw-r--r-- | src/udev/net/link-config.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/udev/net/link-config.c b/src/udev/net/link-config.c index cc6e0a1c9b..e408725b08 100644 --- a/src/udev/net/link-config.c +++ b/src/udev/net/link-config.c @@ -983,12 +983,11 @@ int config_parse_ifalias( void *data, void *userdata) { - char **s = data; + char **s = ASSERT_PTR(data); assert(filename); assert(lvalue); assert(rvalue); - assert(data); if (isempty(rvalue)) { *s = mfree(*s); @@ -1090,13 +1089,12 @@ int config_parse_wol_password( void *data, void *userdata) { - LinkConfig *config = userdata; + LinkConfig *config = ASSERT_PTR(userdata); int r; assert(filename); assert(lvalue); assert(rvalue); - assert(userdata); if (isempty(rvalue)) { config->wol_password = erase_and_free(config->wol_password); |