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/network/netdev/netdev.c | |
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/network/netdev/netdev.c')
-rw-r--r-- | src/network/netdev/netdev.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/network/netdev/netdev.c b/src/network/netdev/netdev.c index 212df3daa0..038a27c118 100644 --- a/src/network/netdev/netdev.c +++ b/src/network/netdev/netdev.c @@ -902,11 +902,10 @@ int config_parse_netdev_kind( void *data, void *userdata) { - NetDevKind k, *kind = data; + NetDevKind k, *kind = ASSERT_PTR(data); assert(filename); assert(rvalue); - assert(data); k = netdev_kind_from_string(rvalue); if (k < 0) { @@ -938,10 +937,9 @@ int config_parse_netdev_hw_addr( void *data, void *userdata) { - struct hw_addr_data *hw_addr = data; + struct hw_addr_data *hw_addr = ASSERT_PTR(data); assert(rvalue); - assert(data); if (streq(rvalue, "none")) { *hw_addr = HW_ADDR_NONE; |