[v2,10/26] batman-adv: iv_ogm_aggr_packet, bool return value
Commit Message
This function returns bool values, so it should be defined to return
them instead of the whole int range.
Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
---
bat_iv_ogm.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Comments
On Friday 26 December 2014 12:41:27 Markus Pargmann wrote:
> This function returns bool values, so it should be defined to return
> them instead of the whole int range.
>
> Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
> ---
> bat_iv_ogm.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
Applied in revision ec3b2d9.
Thanks,
Marek
@@ -394,8 +394,8 @@ static uint8_t batadv_hop_penalty(uint8_t tq,
}
/* is there another aggregated packet here? */
-static int batadv_iv_ogm_aggr_packet(int buff_pos, int packet_len,
- __be16 tvlv_len)
+static bool batadv_iv_ogm_aggr_packet(int buff_pos, int packet_len,
+ __be16 tvlv_len)
{
int next_buff_pos = 0;