summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Pargmann <mpa@pengutronix.de>2014-12-26 12:41:27 +0100
committerAntonio Quartulli <antonio@meshcoding.com>2015-05-29 10:13:36 +0200
commit9fd9b19ea03cce2e47544a3b8e0b532485b34758 (patch)
tree876998d881b53d731fbf7c20b01e0085c8c1cd49
parent42d9f2cbd42e1ba137584da8305cf6f68b84f39d (diff)
downloadop-kernel-dev-9fd9b19ea03cce2e47544a3b8e0b532485b34758.zip
op-kernel-dev-9fd9b19ea03cce2e47544a3b8e0b532485b34758.tar.gz
batman-adv: iv_ogm_aggr_packet, bool return value
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> Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
-rw-r--r--net/batman-adv/bat_iv_ogm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/batman-adv/bat_iv_ogm.c b/net/batman-adv/bat_iv_ogm.c
index 123aabb..0015138 100644
--- a/net/batman-adv/bat_iv_ogm.c
+++ b/net/batman-adv/bat_iv_ogm.c
@@ -392,8 +392,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;
OpenPOWER on IntegriCloud