From de62da297e506b1c5ad9b7dcc9132c681d089efe Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Fri, 14 Feb 2020 10:50:25 +0100 Subject: all: drop explicit casts from _GET_PRIVATE() macro calls The _GET_PRIVATE() macros are all implemented based on _NM_GET_PRIVATE(). That macro tries to be more type safe and uses _Generic() to do the right thing. Explicitly casting is not only unnecessary, it defeats these (static) type checks. Don't do that. --- src/supplicant/nm-supplicant-config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/supplicant/nm-supplicant-config.c') diff --git a/src/supplicant/nm-supplicant-config.c b/src/supplicant/nm-supplicant-config.c index 403b50edb2..2e16f278e1 100644 --- a/src/supplicant/nm-supplicant-config.c +++ b/src/supplicant/nm-supplicant-config.c @@ -256,7 +256,7 @@ nm_supplicant_config_add_blob_for_connection (NMSupplicantConfig *self, static void nm_supplicant_config_finalize (GObject *object) { - NMSupplicantConfigPrivate *priv = NM_SUPPLICANT_CONFIG_GET_PRIVATE ((NMSupplicantConfig *) object); + NMSupplicantConfigPrivate *priv = NM_SUPPLICANT_CONFIG_GET_PRIVATE (object); g_hash_table_destroy (priv->config); g_hash_table_destroy (priv->blobs); -- cgit v1.2.3