Skip to content

Commit 0f9987b

Browse files
Ondrej Mosnacekjohnstultz-work
authored andcommitted
ntp: Remove redundant arguments
The 'ts' argument of process_adj_status() and process_adjtimex_modes() is unused and can be safely removed. Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Ingo Molnar <mingo@kernel.org> Cc: Miroslav Lichvar <mlichvar@redhat.com> Cc: Richard Cochran <richardcochran@gmail.com> Cc: Prarit Bhargava <prarit@redhat.com> Cc: Stephen Boyd <sboyd@kernel.org> Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com> Signed-off-by: John Stultz <john.stultz@linaro.org>
1 parent c6bb111 commit 0f9987b

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

‎kernel/time/ntp.c‎

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ void ntp_notify_cmos_timer(void)
642642
/*
643643
* Propagate a new txc->status value into the NTP state:
644644
*/
645-
static inline void process_adj_status(struct timex *txc, struct timespec64 *ts)
645+
static inline void process_adj_status(struct timex *txc)
646646
{
647647
if ((time_status & STA_PLL) && !(txc->status & STA_PLL)) {
648648
time_state = TIME_OK;
@@ -665,12 +665,10 @@ static inline void process_adj_status(struct timex *txc, struct timespec64 *ts)
665665
}
666666

667667

668-
static inline void process_adjtimex_modes(struct timex *txc,
669-
struct timespec64 *ts,
670-
s32 *time_tai)
668+
static inline void process_adjtimex_modes(struct timex *txc, s32 *time_tai)
671669
{
672670
if (txc->modes & ADJ_STATUS)
673-
process_adj_status(txc, ts);
671+
process_adj_status(txc);
674672

675673
if (txc->modes & ADJ_NANO)
676674
time_status |= STA_NANO;
@@ -735,7 +733,7 @@ int __do_adjtimex(struct timex *txc, struct timespec64 *ts, s32 *time_tai)
735733

736734
/* If there are input parameters, then process them: */
737735
if (txc->modes)
738-
process_adjtimex_modes(txc, ts, time_tai);
736+
process_adjtimex_modes(txc, time_tai);
739737

740738
txc->offset = shift_right(time_offset * NTP_INTERVAL_FREQ,
741739
NTP_SCALE_SHIFT);

0 commit comments

Comments
 (0)