diff options
author | Patrick McHardy <kaber@trash.net> | 2007-03-23 14:28:30 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-04-26 01:27:51 -0400 |
commit | a084980dcbf56c896e4b6c19aff2b082d5db7006 (patch) | |
tree | 2bdecde658ff928eff6e0f12ccba63217692d8de /include/net/pkt_sched.h | |
parent | 104e0878984bb467e3f54d61105d8903babb4ec1 (diff) |
[NET_SCHED]: kill PSCHED_SET_PASTPERFECT/PSCHED_IS_PASTPERFECT
Use direct assignment and comparison instead.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/pkt_sched.h')
-rw-r--r-- | include/net/pkt_sched.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/net/pkt_sched.h b/include/net/pkt_sched.h index 49325ffb00b1..c40147a60205 100644 --- a/include/net/pkt_sched.h +++ b/include/net/pkt_sched.h | |||
@@ -54,8 +54,7 @@ typedef long psched_tdiff_t; | |||
54 | #define PSCHED_TDIFF(tv1, tv2) (long)((tv1) - (tv2)) | 54 | #define PSCHED_TDIFF(tv1, tv2) (long)((tv1) - (tv2)) |
55 | #define PSCHED_TDIFF_SAFE(tv1, tv2, bound) \ | 55 | #define PSCHED_TDIFF_SAFE(tv1, tv2, bound) \ |
56 | min_t(long long, (tv1) - (tv2), bound) | 56 | min_t(long long, (tv1) - (tv2), bound) |
57 | #define PSCHED_SET_PASTPERFECT(t) ((t) = 0) | 57 | #define PSCHED_PASTPERFECT 0 |
58 | #define PSCHED_IS_PASTPERFECT(t) ((t) == 0) | ||
59 | 58 | ||
60 | struct qdisc_watchdog { | 59 | struct qdisc_watchdog { |
61 | struct hrtimer timer; | 60 | struct hrtimer timer; |