Skip to contentSkip to conversation

batadv: tt: fix return value of batadv_tt_init

PATCH New Sven Eckelmann 1 participant 1 message Nov 28 Batman advanced

lore
Share & tools
lore

Sven Eckelmann

author maintainer
#0 lore raw

PATCH 1/1 batadv: tt: fix return value of batadv_tt_init

The kernel-doc document a return value of 0 on success - which the code contradicts because it returns a 1 on success. This doesn't change the overall behavior because batadv_mesh_init() only checks for negative error values to detect problems.

---
 net/batman-adv/translation-table.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/batman-adv/translation-table.c +1 -1
index e08bf88b..eb9bdffe 100644
@@ -5461,7 +5461,7 @@ int batadv_tt_init(struct batadv_priv *bat_priv)
 	queue_delayed_work(batadv_event_workqueue, &bat_priv->tt.work,
 			   msecs_to_jiffies(BATADV_TT_WORK_PERIOD));
 
-	return 1;
+	return 0;
 }
 
 /**

---
base-commit: 11431b38d0cd787a2e988416e7086dc1cf225055
change-id: 20261128-tt_init_return_value-706e846c8b86

Best regards,

Signature · 1 line
Sven Eckelmann <[email protected]>