From fe6889f7b10f6d7a4e85bb3535f23ab33bfb9cb0 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Thu, 23 Apr 2015 13:46:51 +0200 Subject: platform: remove wrong assertion This is a well known issue that we cannot convert some libnl objects to NMPlatformObject. The to-string function for libnl objects is only used for debug logging. No need to assert. (cherry picked from commit 8f080747c622889decc1bd12176b48639597a453) --- src/platform/nm-linux-platform.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/platform/nm-linux-platform.c b/src/platform/nm-linux-platform.c index 0a08ed176c..5b2c308f18 100644 --- a/src/platform/nm-linux-platform.c +++ b/src/platform/nm-linux-platform.c @@ -1392,7 +1392,6 @@ static char to_string_buffer[255]; #define SET_AND_RETURN_STRING_BUFFER(...) \ G_STMT_START { \ g_snprintf (to_string_buffer, sizeof (to_string_buffer), ## __VA_ARGS__); \ - g_return_val_if_reached (to_string_buffer); \ return to_string_buffer; \ } G_STMT_END -- cgit v1.2.1