Skip to content

Commit 84d0a39

Browse files
ecsvsimonwunderlich
authored andcommitted
batman-adv: Fix indentation of batadv_seq_before
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]>
1 parent 6b1aea8 commit 84d0a39

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

net/batman-adv/main.h

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -331,11 +331,13 @@ static inline bool batadv_has_timed_out(unsigned long timestamp,
331331
*
332332
* Return: true when x is a predecessor of y, false otherwise
333333
*/
334-
#define batadv_seq_before(x, y) ({typeof(x)_d1 = (x); \
335-
typeof(y)_d2 = (y); \
336-
typeof(x)_dummy = (_d1 - _d2); \
337-
(void)(&_d1 == &_d2); \
338-
_dummy > batadv_smallest_signed_int(_dummy); })
334+
#define batadv_seq_before(x, y) ({ \
335+
typeof(x)_d1 = (x); \
336+
typeof(y)_d2 = (y); \
337+
typeof(x)_dummy = (_d1 - _d2); \
338+
(void)(&_d1 == &_d2); \
339+
_dummy > batadv_smallest_signed_int(_dummy); \
340+
})
339341

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

0 commit comments

Comments
 (0)