From 079693d22f6e3b4577b482aac2634b88faeb339d Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Thu, 29 Aug 2019 22:59:20 +0200 Subject: OSMO_SOCKADDR_STR_FMT_ARGS: remove useless condition Since (R)->ip is a char[], it is always non-NULL. The (x ? : "") condition is completely pointless. Remove it. Change-Id: I13ed06776a784cfa99bbdfca2bb4dfe12913a1ec --- include/osmocom/core/sockaddr_str.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/osmocom/core/sockaddr_str.h b/include/osmocom/core/sockaddr_str.h index 253b755f..7c01732d 100644 --- a/include/osmocom/core/sockaddr_str.h +++ b/include/osmocom/core/sockaddr_str.h @@ -62,7 +62,7 @@ struct osmo_sockaddr_str { * printf("got " OSMO_SOCKADDR_STR_FMT "\n", OSMO_SOCKADDR_STR_FMT_ARGS(my_sockaddr_str)); */ #define OSMO_SOCKADDR_STR_FMT "%s:%u" -#define OSMO_SOCKADDR_STR_FMT_ARGS(R) ((R)->ip ? : ""), (R)->port +#define OSMO_SOCKADDR_STR_FMT_ARGS(R) (R)->ip, (R)->port bool osmo_sockaddr_str_is_set(const struct osmo_sockaddr_str *sockaddr_str); -- cgit v1.2.3