aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/posix-timers.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2011-02-01 08:51:56 -0500
committerThomas Gleixner <tglx@linutronix.de>2011-02-02 09:28:15 -0500
commitebaac757acae0431e2c79c00e09f1debdabbddd7 (patch)
tree3f5dbd5cdb4cd6effd1556e65b4885edc8e269de /kernel/posix-timers.c
parente5e542eea9075dd008993c2ee80b2cc9f31fc494 (diff)
posix-timers: Remove useless res field from k_clock
The res member of kclock is only used by mmtimer.c, but even there it contains redundant information. Remove the field and fixup mmtimer. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: John Stultz <johnstul@us.ibm.com> Tested-by: Richard Cochran <richard.cochran@omicron.at> LKML-Reference: <20110201134418.808714587@linutronix.de>
Diffstat (limited to 'kernel/posix-timers.c')
-rw-r--r--kernel/posix-timers.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/kernel/posix-timers.c b/kernel/posix-timers.c
index 748497fffd0f..f9142a99b5cb 100644
--- a/kernel/posix-timers.c
+++ b/kernel/posix-timers.c
@@ -204,8 +204,6 @@ static inline int invalid_clockid(const clockid_t which_clock)
204 return 1; 204 return 1;
205 if (posix_clocks[which_clock].clock_getres != NULL) 205 if (posix_clocks[which_clock].clock_getres != NULL)
206 return 0; 206 return 0;
207 if (posix_clocks[which_clock].res != 0)
208 return 0;
209 return 1; 207 return 1;
210} 208}
211 209