diff options
| author | Steve Markgraf <steve@steve-m.de> | 2012-11-03 23:31:21 +0100 |
|---|---|---|
| committer | Steve Markgraf <steve@steve-m.de> | 2012-11-04 13:53:11 +0100 |
| commit | cc35aa64be129f8e89a6584938f589434969ff9b (patch) | |
| tree | 48f297b947b00ded6686006d3852dc3d0c83938d /src/rtl_test.c | |
| parent | fdc9dcbc6b7b6a4aadec079ed8f3356e89c3c480 (diff) | |
rtl_eeprom, rtl_test: remove unused variables and labels
Signed-off-by: Steve Markgraf <steve@steve-m.de>
Diffstat (limited to 'src/rtl_test.c')
| -rw-r--r-- | src/rtl_test.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/rtl_test.c b/src/rtl_test.c index 3840f59..fa54628 100644 --- a/src/rtl_test.c +++ b/src/rtl_test.c @@ -108,7 +108,6 @@ static void rtlsdr_callback(unsigned char *buf, uint32_t len, void *ctx) { uint32_t i, lost = 0; int64_t ns; - double perf_sec; if (uninit) { bcnt = buf[0]; @@ -221,7 +220,6 @@ int main(int argc, char **argv) int gains[100]; int real_rate; int64_t ns; - double perf_sec; while ((opt = getopt(argc, argv, "d:s:b:tpS::")) != -1) { switch (opt) { @@ -376,6 +374,6 @@ int main(int argc, char **argv) exit: rtlsdr_close(dev); free (buffer); -out: + return r >= 0 ? r : -r; } |
