diff options
Diffstat (limited to 'net/batman-adv/gateway_client.c')
-rw-r--r-- | net/batman-adv/gateway_client.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/batman-adv/gateway_client.c b/net/batman-adv/gateway_client.c index cf7f95e9a952..24aee561f3d8 100644 --- a/net/batman-adv/gateway_client.c +++ b/net/batman-adv/gateway_client.c | |||
@@ -322,7 +322,7 @@ void gw_node_update(struct bat_priv *bat_priv, | |||
322 | 322 | ||
323 | gw_node->deleted = 0; | 323 | gw_node->deleted = 0; |
324 | 324 | ||
325 | if (new_gwflags == 0) { | 325 | if (new_gwflags == NO_FLAGS) { |
326 | gw_node->deleted = jiffies; | 326 | gw_node->deleted = jiffies; |
327 | bat_dbg(DBG_BATMAN, bat_priv, | 327 | bat_dbg(DBG_BATMAN, bat_priv, |
328 | "Gateway %pM removed from gateway list\n", | 328 | "Gateway %pM removed from gateway list\n", |
@@ -335,7 +335,7 @@ void gw_node_update(struct bat_priv *bat_priv, | |||
335 | goto unlock; | 335 | goto unlock; |
336 | } | 336 | } |
337 | 337 | ||
338 | if (new_gwflags == 0) | 338 | if (new_gwflags == NO_FLAGS) |
339 | goto unlock; | 339 | goto unlock; |
340 | 340 | ||
341 | gw_node_add(bat_priv, orig_node, new_gwflags); | 341 | gw_node_add(bat_priv, orig_node, new_gwflags); |