summaryrefslogtreecommitdiff
path: root/net/tipc/core.h
diff options
context:
space:
mode:
authorPaul Gortmaker <paul.gortmaker@windriver.com>2012-02-23 20:44:08 (GMT)
committerPaul Gortmaker <paul.gortmaker@windriver.com>2012-02-24 22:05:14 (GMT)
commit732efba4d77e1b0857984c401a7b18784f51b075 (patch)
tree23ae37b3a90b3648c7f48c6241f27ae755e424a7 /net/tipc/core.h
parentf80c24d9964c8a15c55d1afc2dea327c5eff7d6b (diff)
downloadlinux-fsl-qoriq-732efba4d77e1b0857984c401a7b18784f51b075.tar.xz
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>
Diffstat (limited to 'net/tipc/core.h')
-rw-r--r--net/tipc/core.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/net/tipc/core.h b/net/tipc/core.h
index 2761af3..1260b05 100644
--- a/net/tipc/core.h
+++ b/net/tipc/core.h
@@ -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
*/