Commit 9c98c978 authored by Alessandro Rubini's avatar Alessandro Rubini

wr-calibration: remove now-unused variable

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 0a49d0dd
...@@ -50,6 +50,7 @@ static int cmd_fault(const char *args[]) ...@@ -50,6 +50,7 @@ static int cmd_fault(const char *args[])
(int)((t->scaled_nsecs * 1000) >> 16)); (int)((t->scaled_nsecs * 1000) >> 16));
} }
pp_printf("\n"); pp_printf("\n");
return 0;
} }
pp_printf("Use: \"fault drop [<rxdrop> <txdrop>]\" (0..999)\n"); pp_printf("Use: \"fault drop [<rxdrop> <txdrop>]\" (0..999)\n");
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
int wr_calibration(struct pp_instance *ppi, unsigned char *pkt, int plen) int wr_calibration(struct pp_instance *ppi, unsigned char *pkt, int plen)
{ {
struct wr_dsport *wrp = WR_DSPOR(ppi); struct wr_dsport *wrp = WR_DSPOR(ppi);
int e = 0, sendmsg = 0; int sendmsg = 0;
uint32_t delta; uint32_t delta;
if (ppi->is_new_state) { if (ppi->is_new_state) {
...@@ -31,7 +31,7 @@ int wr_calibration(struct pp_instance *ppi, unsigned char *pkt, int plen) ...@@ -31,7 +31,7 @@ int wr_calibration(struct pp_instance *ppi, unsigned char *pkt, int plen)
if (sendmsg) { if (sendmsg) {
__pp_timeout_set(ppi, PP_TO_EXT_0, wrp->calPeriod); __pp_timeout_set(ppi, PP_TO_EXT_0, wrp->calPeriod);
e = msg_issue_wrsig(ppi, CALIBRATE); msg_issue_wrsig(ppi, CALIBRATE);
wrp->wrPortState = WR_PORT_CALIBRATION_0; wrp->wrPortState = WR_PORT_CALIBRATION_0;
if (wrp->calibrated) if (wrp->calibrated)
wrp->wrPortState = WR_PORT_CALIBRATION_2; wrp->wrPortState = WR_PORT_CALIBRATION_2;
...@@ -126,7 +126,7 @@ int wr_calibration(struct pp_instance *ppi, unsigned char *pkt, int plen) ...@@ -126,7 +126,7 @@ int wr_calibration(struct pp_instance *ppi, unsigned char *pkt, int plen)
break; break;
case WR_PORT_CALIBRATION_8: case WR_PORT_CALIBRATION_8:
/* send deltas to the other port and go to the next state */ /* send deltas to the other port and go to the next state */
e = msg_issue_wrsig(ppi, CALIBRATED); msg_issue_wrsig(ppi, CALIBRATED);
ppi->next_state = WRS_CALIBRATED; ppi->next_state = WRS_CALIBRATED;
wrp->calibrated = TRUE; wrp->calibrated = TRUE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment