summaryrefslogtreecommitdiff
path: root/include/linux/timerqueue.h
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2026-06-02 17:20:57 +0200
committerSven Eckelmann <sven@narfation.org>2026-06-03 08:27:17 +0200
commit5f80c363677c6aea0f2fc9a4fe0b5622abd97674 (patch)
treefb949f8d6e9b04a04221092cb60a61f59628177f /include/linux/timerqueue.h
parent5e50d4b8ae3ea622122d3c6a38d7f6fe68dfddca (diff)
batman-adv: tt: sync local and global tvlv preparation return values
The batadv_tt_prepare_tvlv_local_data() and batadv_tt_prepare_tvlv_global_data() functions are supposed to work the same - just with different sources for the TT entries. But both handled the return values completely different. The global variant only made sure that the *tt_len parameter was set to 0 and didn't care about the actual return value of the function. The local function never made sure that the *tt_len value was set to some value when the operation failed. The callers were handling these differences and made sure that they didn't access the incorrectly initialized variable. Sync both function as good as possible to avoid problems with new code which might not be aware of these differences in the behavior. Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions