From 0ff2d47d61b93946806b890f807fa75e278c88e1 Mon Sep 17 00:00:00 2001 From: Richard Cochran Date: Tue, 25 Sep 2012 19:39:50 +0200 Subject: [PATCH] phc2sys: remove unused variable. The 'src' parameter to the do_servo() function is never used, so remove it. Signed-off-by: Richard Cochran --- phc2sys.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/phc2sys.c b/phc2sys.c index ee5cbaf..cd91966 100644 --- a/phc2sys.c +++ b/phc2sys.c @@ -126,8 +126,7 @@ struct servo { static struct servo servo; -static void do_servo(struct servo *srv, - clockid_t src, clockid_t dst, +static void do_servo(struct servo *srv, clockid_t dst, int64_t offset, uint64_t ts, double kp, double ki) { double ki_term, ppb; @@ -290,9 +289,9 @@ int main(int argc, char *argv[]) } if (fd > 0) - do_servo(&servo, src, dst, pps_offset, pps_ts, kp, ki); + do_servo(&servo, dst, pps_offset, pps_ts, kp, ki); else - do_servo(&servo, src, dst, phc_offset, phc_ts, kp, ki); + do_servo(&servo, dst, phc_offset, phc_ts, kp, ki); } return 0; }