ntp: Remove redundant and incorrect parameter check
authorRichard Cochran <richardcochran@gmail.com>
Fri, 18 Feb 2011 09:07:25 +0000 (10:07 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 18 Feb 2011 16:01:12 +0000 (17:01 +0100)
The ADJ_SETOFFSET code redundantly checks the range of the nanoseconds
field of the time value. This field is checked again in the subsequent
call to timekeeping_inject_offset(). Also, as is, the check will not
detect whether the number of microseconds is out of range.

Let timekeeping_inject_offset() do the error checking.

Signed-off-by: Richard Cochran <richard.cochran@omicron.at>
Cc: johnstul@us.ibm.com
LKML-Reference: <20110218090724.GA2924@riccoc20.at.omicron.at>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

No differences found