aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/batman-adv/translation-table.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/batman-adv/translation-table.c b/net/batman-adv/translation-table.c
index 0ac39d5f77d8..c61209f764b1 100644
--- a/net/batman-adv/translation-table.c
+++ b/net/batman-adv/translation-table.c
@@ -2420,7 +2420,7 @@ bool batadv_tt_global_client_is_roaming(struct batadv_priv *bat_priv,
2420 if (!tt_global_entry) 2420 if (!tt_global_entry)
2421 goto out; 2421 goto out;
2422 2422
2423 ret = tt_global_entry->common.flags & BATADV_TT_CLIENT_ROAM; 2423 ret = !!(tt_global_entry->common.flags & BATADV_TT_CLIENT_ROAM);
2424 batadv_tt_global_entry_free_ref(tt_global_entry); 2424 batadv_tt_global_entry_free_ref(tt_global_entry);
2425out: 2425out:
2426 return ret; 2426 return ret;