isisd: always print adj->sysid (clang 3.6 warning)
As any new compiler version, clang 3.6 has new warnings, one of these
being that it now warns for testing whether the address of an array will
be true.
Of course there is no point in this check for the sysid, so let's always
just print the sysid.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
diff --git a/isisd/isis_adjacency.c b/isisd/isis_adjacency.c
index a352436..a485575 100644
--- a/isisd/isis_adjacency.c
+++ b/isisd/isis_adjacency.c
@@ -377,14 +377,8 @@
dyn = dynhn_find_by_id (adj->sysid);
if (dyn)
vty_out (vty, " %-20s", dyn->name.name);
- else if (adj->sysid)
- {
- vty_out (vty, " %-20s", sysid_print (adj->sysid));
- }
else
- {
- vty_out (vty, " unknown ");
- }
+ vty_out (vty, " %-20s", sysid_print (adj->sysid));
if (detail == ISIS_UI_LEVEL_BRIEF)
{