aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2019-08-29 22:59:20 +0200
committerNeels Hofmeyr <neels@hofmeyr.de>2019-08-30 14:09:42 +0200
commit079693d22f6e3b4577b482aac2634b88faeb339d (patch)
tree8ef825cd1937ced16ee548520c12e9bbc6eb8fa6
parentf8fe48e7fb2f0fef722bcd0d4cf37f6697ae86b4 (diff)
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
-rw-r--r--include/osmocom/core/sockaddr_str.h2
1 files changed, 1 insertions, 1 deletions
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);