Skip to content

Commit

Permalink
batman-adv: Fix indentation of batadv_seq_before
Browse files Browse the repository at this point in the history
Also multiline macros should have their statements start on a tabstop. This
was detected by checkpatch.pl after commit a134f8d ("checkpatch:
improve the TABSTOP test to include declarations").

Signed-off-by: Sven Eckelmann <[email protected]>
Signed-off-by: Simon Wunderlich <[email protected]>
  • Loading branch information
ecsv authored and simonwunderlich committed Feb 27, 2018
1 parent 6b1aea8 commit 84d0a39
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions net/batman-adv/main.h
Original file line number Diff line number Diff line change
Expand Up @@ -331,11 +331,13 @@ static inline bool batadv_has_timed_out(unsigned long timestamp,
*
* Return: true when x is a predecessor of y, false otherwise
*/
#define batadv_seq_before(x, y) ({typeof(x)_d1 = (x); \
typeof(y)_d2 = (y); \
typeof(x)_dummy = (_d1 - _d2); \
(void)(&_d1 == &_d2); \
_dummy > batadv_smallest_signed_int(_dummy); })
#define batadv_seq_before(x, y) ({ \
typeof(x)_d1 = (x); \
typeof(y)_d2 = (y); \
typeof(x)_dummy = (_d1 - _d2); \
(void)(&_d1 == &_d2); \
_dummy > batadv_smallest_signed_int(_dummy); \
})

/**
* batadv_seq_after() - Checks if a sequence number x is a successor of y
Expand Down

0 comments on commit 84d0a39

Please sign in to comment.