tipc: nuke the delimit static inline function.
This "shortform" is actually longer than typing out what it is really trying to do, and just makes reading the code more difficult, so lets simply shoot it in the head. In the case of log.c - the comparison is on a u32, so we can drop the check for < 0 at the same time. Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
This commit is contained in:
@@ -168,16 +168,6 @@ extern void tipc_netlink_stop(void);
|
||||
extern int tipc_socket_init(void);
|
||||
extern void tipc_socket_stop(void);
|
||||
|
||||
static inline int delimit(int val, int min, int max)
|
||||
{
|
||||
if (val > max)
|
||||
return max;
|
||||
if (val < min)
|
||||
return min;
|
||||
return val;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* TIPC timer and signal code
|
||||
*/
|
||||
|
Reference in New Issue
Block a user