diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-08-18 22:44:57 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-08-18 22:44:57 +0200 |
commit | c9c7cbb67c8a3cff9241bee1e1b1902be4e0a799 (patch) | |
tree | d2c40a735217fc6fdc511578916d019066f2c4b9 /src/peer.c | |
parent | d39193123e57fe38532f8c3ab3029acf1e45ae92 (diff) | |
download | fastd-c9c7cbb67c8a3cff9241bee1e1b1902be4e0a799.tar fastd-c9c7cbb67c8a3cff9241bee1e1b1902be4e0a799.zip |
Remove a few now unneeded peer->config NULL checks
Diffstat (limited to 'src/peer.c')
-rw-r--r-- | src/peer.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -42,7 +42,7 @@ void fastd_peer_set_shell_env(fastd_shell_env_t *env, const fastd_peer_t *peer, /* both INET6_ADDRSTRLEN and IFNAMESIZE already include space for the zero termination, so there is no need to add space for the '%' here. */ char buf[INET6_ADDRSTRLEN+IF_NAMESIZE]; - fastd_shell_env_set(env, "PEER_NAME", (peer && peer->config) ? peer->config->name : NULL); + fastd_shell_env_set(env, "PEER_NAME", peer ? peer->config->name : NULL); switch(local_addr ? local_addr->sa.sa_family : AF_UNSPEC) { case AF_INET: |