[rtems commit] sparc/../occan.c: Fix set but unused variable warning
Joel Sherrill
joel at rtems.org
Sat Sep 21 21:19:51 UTC 2013
Module: rtems
Branch: master
Commit: 946c3918f0f4ace70fa913929be2ed943260de3c
Changeset: http://git.rtems.org/rtems/commit/?id=946c3918f0f4ace70fa913929be2ed943260de3c
Author: Joel Sherrill <joel.sherrill at oarcorp.com>
Date: Sat Sep 21 15:48:45 2013 -0500
sparc/../occan.c: Fix set but unused variable warning
---
c/src/lib/libbsp/sparc/shared/can/occan.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/c/src/lib/libbsp/sparc/shared/can/occan.c b/c/src/lib/libbsp/sparc/shared/can/occan.c
index b1bf54e..ca86cc2 100644
--- a/c/src/lib/libbsp/sparc/shared/can/occan.c
+++ b/c/src/lib/libbsp/sparc/shared/can/occan.c
@@ -747,7 +747,7 @@ static void occan_stat_print(occan_stats *stats){
static int occan_calc_speedregs(unsigned int clock_hz, unsigned int rate, occan_speed_regs *result){
int best_error = 1000000000;
int error;
- int best_tseg=0, best_brp=0, best_rate=0, brp=0;
+ int best_tseg=0, best_brp=0, brp=0;
int tseg=0, tseg1=0, tseg2=0;
int sjw = 0;
int clock = clock_hz / 2;
@@ -791,7 +791,6 @@ static int occan_calc_speedregs(unsigned int clock_hz, unsigned int rate, occan_
best_error = error;
best_tseg = tseg/2;
best_brp = brp-1;
- best_rate = clock/(brp*(1+tseg/2));
}
}
More information about the vc
mailing list