From 09c69ecaeb2c63b2b7e20728c4f4704bbb464a9c Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Wed, 9 Sep 2020 02:08:24 +0900 Subject: [PATCH] udev: explicitly specify return value --- src/udev/net/link-config.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/udev/net/link-config.c b/src/udev/net/link-config.c index 72ef0c56be0..03fd429b275 100644 --- a/src/udev/net/link-config.c +++ b/src/udev/net/link-config.c @@ -320,7 +320,8 @@ static int get_mac(sd_device *device, MACAddressPolicy policy, struct ether_addr case NET_ADDR_PERM: break; default: - return log_device_warning(device, "Unknown addr_assign_type %u, ignoring", addr_type); + log_device_warning(device, "Unknown addr_assign_type %u, ignoring", addr_type); + return 0; } if (want_random == (addr_type == NET_ADDR_RANDOM)) -- 2.47.3