Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 323081
b: refs/heads/master
c: dbd6b11
h: refs/heads/master
i:
  323079: 55cfd48
v: v3
  • Loading branch information
Linus Lüssing authored and David S. Miller committed Sep 19, 2012
1 parent c8bdf9d commit 6bf17af
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 59d86c760fbb855d9a26b9b280d4ff59303f2fc5
refs/heads/master: dbd6b11e15a2f96030da17dbeda943a8a98ee990
6 changes: 3 additions & 3 deletions trunk/net/batman-adv/bitarray.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
#ifndef _NET_BATMAN_ADV_BITARRAY_H_
#define _NET_BATMAN_ADV_BITARRAY_H_

/* returns true if the corresponding bit in the given seq_bits indicates true
* and curr_seqno is within range of last_seqno
/* Returns 1 if the corresponding bit in the given seq_bits indicates true
* and curr_seqno is within range of last_seqno. Otherwise returns 0.
*/
static inline int batadv_test_bit(const unsigned long *seq_bits,
uint32_t last_seqno, uint32_t curr_seqno)
Expand All @@ -32,7 +32,7 @@ static inline int batadv_test_bit(const unsigned long *seq_bits,
if (diff < 0 || diff >= BATADV_TQ_LOCAL_WINDOW_SIZE)
return 0;
else
return test_bit(diff, seq_bits);
return test_bit(diff, seq_bits) != 0;
}

/* turn corresponding bit on, so we can remember that we got the packet */
Expand Down

0 comments on commit 6bf17af

Please sign in to comment.