On Saturday, May 12, 2012 02:29:46 Sven Eckelmann wrote:
@@ -138,7 +138,8 @@ static uint8_t hop_penalty(uint8_t tq, const struct bat_priv *bat_priv) static int bat_iv_ogm_aggr_packet(int buff_pos, int packet_len, int tt_num_changes) {
int next_buff_pos = buff_pos + BATMAN_OGM_HLEN +
tt_len(tt_num_changes); + int next_buff_pos = buff_pos + BATMAN_OGM_HLEN +
batadv_tt_len(tt_num_changes); return (next_buff_pos <= packet_len) && (next_buff_pos <= MAX_AGGREGATION_BYTES);
@@ -189,7 +190,7 @@ static void bat_iv_ogm_send_to_if(struct forw_packet *forw_packet, hard_iface->net_dev->dev_addr);
buff_pos += BATMAN_OGM_HLEN +
tt_len(batman_ogm_packet->tt_num_changes);
batadv_tt_len(batman_ogm_packet->tt_num_changes
); packet_num++; batman_ogm_packet = (struct batman_ogm_packet *) (forw_packet->skb->data + buff_pos);
Here we have indentation David does not like (although not problematic for checkpatch).
@@ -1222,7 +1226,7 @@ static int bat_iv_ogm_receive(struct sk_buff *skb, tt_buff, if_incoming);
buff_pos += BATMAN_OGM_HLEN +
tt_len(batman_ogm_packet->tt_num_changes);
batadv_tt_len(batman_ogm_packet-
tt_num_changes);
batman_ogm_packet = (struct batman_ogm_packet *) (packet_buff + buff_pos);
Same here.
Regards, Marek