diff options
author | Antonio Quartulli <antonio@meshcoding.com> | 2014-09-01 14:37:25 +0200 |
---|---|---|
committer | Antonio Quartulli <antonio@meshcoding.com> | 2015-01-07 17:21:55 +0100 |
commit | 24820df1449d4d7cf71bb66e7885ab7394c7b4fb (patch) | |
tree | 0e20b048e4c08ab73eec5ced36d0da194a85d2ee /net/batman-adv/bitarray.h | |
parent | a0e287750562969db8a891e9805fef55aeb05df0 (diff) | |
download | op-kernel-dev-24820df1449d4d7cf71bb66e7885ab7394c7b4fb.zip op-kernel-dev-24820df1449d4d7cf71bb66e7885ab7394c7b4fb.tar.gz |
batman-adv: checkpatch - else is not generally useful after a break or return
Signed-off-by: Antonio Quartulli <antonio@meshcoding.com>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Diffstat (limited to 'net/batman-adv/bitarray.h')
-rw-r--r-- | net/batman-adv/bitarray.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/batman-adv/bitarray.h b/net/batman-adv/bitarray.h index cc24073..2acaafe 100644 --- a/net/batman-adv/bitarray.h +++ b/net/batman-adv/bitarray.h @@ -29,8 +29,7 @@ static inline int batadv_test_bit(const unsigned long *seq_bits, diff = last_seqno - curr_seqno; if (diff < 0 || diff >= BATADV_TQ_LOCAL_WINDOW_SIZE) return 0; - else - return test_bit(diff, seq_bits) != 0; + return test_bit(diff, seq_bits) != 0; } /* turn corresponding bit on, so we can remember that we got the packet */ |