batadv: tt: fix return value of batadv_tt_init
Sven Eckelmann
maintainerPATCH 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.
Signed-off-by Sven Eckelmann <[email protected]>
--- net/batman-adv/translation-table.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/batman-adv/translation-table.c +1 -1
@@ -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]>