mirror of
https://github.com/rtlsdrblog/rtl-sdr-blog.git
synced 2024-11-06 10:47:35 +01:00
rtl_eeprom, rtl_test: remove unused variables and labels
Signed-off-by: Steve Markgraf <steve@steve-m.de>
This commit is contained in:
parent
fdc9dcbc6b
commit
cc35aa64be
@ -248,12 +248,11 @@ void gen_default_conf(rtlsdr_config_t *conf, int config)
|
|||||||
|
|
||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
int i, r, opt, pos;
|
int i, r, opt;
|
||||||
uint32_t dev_index = 0;
|
uint32_t dev_index = 0;
|
||||||
int device_count;
|
int device_count;
|
||||||
char *filename = NULL;
|
char *filename = NULL;
|
||||||
FILE *file = NULL;
|
FILE *file = NULL;
|
||||||
uint16_t idVendor, idProduct;
|
|
||||||
char *manuf_str = NULL;
|
char *manuf_str = NULL;
|
||||||
char *product_str = NULL;
|
char *product_str = NULL;
|
||||||
char *serial_str = NULL;
|
char *serial_str = NULL;
|
||||||
@ -420,6 +419,5 @@ exit:
|
|||||||
|
|
||||||
rtlsdr_close(dev);
|
rtlsdr_close(dev);
|
||||||
|
|
||||||
out:
|
|
||||||
return r >= 0 ? r : -r;
|
return r >= 0 ? r : -r;
|
||||||
}
|
}
|
||||||
|
@ -108,7 +108,6 @@ static void rtlsdr_callback(unsigned char *buf, uint32_t len, void *ctx)
|
|||||||
{
|
{
|
||||||
uint32_t i, lost = 0;
|
uint32_t i, lost = 0;
|
||||||
int64_t ns;
|
int64_t ns;
|
||||||
double perf_sec;
|
|
||||||
|
|
||||||
if (uninit) {
|
if (uninit) {
|
||||||
bcnt = buf[0];
|
bcnt = buf[0];
|
||||||
@ -221,7 +220,6 @@ int main(int argc, char **argv)
|
|||||||
int gains[100];
|
int gains[100];
|
||||||
int real_rate;
|
int real_rate;
|
||||||
int64_t ns;
|
int64_t ns;
|
||||||
double perf_sec;
|
|
||||||
|
|
||||||
while ((opt = getopt(argc, argv, "d:s:b:tpS::")) != -1) {
|
while ((opt = getopt(argc, argv, "d:s:b:tpS::")) != -1) {
|
||||||
switch (opt) {
|
switch (opt) {
|
||||||
@ -376,6 +374,6 @@ int main(int argc, char **argv)
|
|||||||
exit:
|
exit:
|
||||||
rtlsdr_close(dev);
|
rtlsdr_close(dev);
|
||||||
free (buffer);
|
free (buffer);
|
||||||
out:
|
|
||||||
return r >= 0 ? r : -r;
|
return r >= 0 ? r : -r;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user