phc2sys: remove unused variable.

The 'src' parameter to the do_servo() function is never used, so
remove it.

Signed-off-by: Richard Cochran <richardcochran@gmail.com>
master
Richard Cochran 2012-09-25 19:39:50 +02:00
parent 8f00d29265
commit 0ff2d47d61
1 changed files with 3 additions and 4 deletions

View File

@ -126,8 +126,7 @@ struct servo {
static struct servo servo; static struct servo servo;
static void do_servo(struct servo *srv, static void do_servo(struct servo *srv, clockid_t dst,
clockid_t src, clockid_t dst,
int64_t offset, uint64_t ts, double kp, double ki) int64_t offset, uint64_t ts, double kp, double ki)
{ {
double ki_term, ppb; double ki_term, ppb;
@ -290,9 +289,9 @@ int main(int argc, char *argv[])
} }
if (fd > 0) 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 else
do_servo(&servo, src, dst, phc_offset, phc_ts, kp, ki); do_servo(&servo, dst, phc_offset, phc_ts, kp, ki);
} }
return 0; return 0;
} }