platform: drop redundant check for plen in nm_platform_ip4_address_generate_device_route()

This commit is contained in:
Thomas Haller 2022-05-24 10:53:59 +02:00
parent 0634dfd510
commit ab1fa010a3
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -8975,8 +8975,6 @@ nm_platform_ip4_address_generate_device_route(const NMPlatformIP4Address *addr,
nm_assert(addr);
nm_assert(addr->plen <= 32);
if (addr->plen == 0)
return NULL;
if (addr->plen == 0)
return NULL;