summaryrefslogtreecommitdiffstats
path: root/src/log.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-08-18 22:44:57 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-08-18 22:44:57 +0200
commitc9c7cbb67c8a3cff9241bee1e1b1902be4e0a799 (patch)
treed2c40a735217fc6fdc511578916d019066f2c4b9 /src/log.c
parentd39193123e57fe38532f8c3ab3029acf1e45ae92 (diff)
downloadfastd-c9c7cbb67c8a3cff9241bee1e1b1902be4e0a799.tar
fastd-c9c7cbb67c8a3cff9241bee1e1b1902be4e0a799.zip
Remove a few now unneeded peer->config NULL checks
Diffstat (limited to 'src/log.c')
-rw-r--r--src/log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/log.c b/src/log.c
index 8513c79..122b322 100644
--- a/src/log.c
+++ b/src/log.c
@@ -93,7 +93,7 @@ static size_t snprint_peer_address(char *buffer, size_t size, const fastd_peer_a
/** Creates a string representation of a peer */
static size_t snprint_peer_str(char *buffer, size_t size, const fastd_peer_t *peer) {
- if (peer->config && peer->config->name) {
+ if (peer->config->name) {
return snprintf_safe(buffer, size, "<%s>", peer->config->name);
}
else {