Skip to content

Commit

Permalink
lib: add missing 'goto' in tuner detection code
Browse files Browse the repository at this point in the history
Add missing ‘goto’ to avoid checks for other tuners when
R828D tuner is found.

Signed-off-by: Steve Markgraf <[email protected]>
  • Loading branch information
berkovskyy authored and steve-m committed Jan 28, 2014
1 parent bf92121 commit 2c17163
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/librtlsdr.c
Original file line number Diff line number Diff line change
Expand Up @@ -1503,6 +1503,7 @@ int rtlsdr_open(rtlsdr_dev_t **out_dev, uint32_t index)
if (reg == R82XX_CHECK_VAL) {
fprintf(stderr, "Found Rafael Micro R828D tuner\n");
dev->tuner_type = RTLSDR_TUNER_R828D;
goto found;
}

/* initialise GPIOs */
Expand Down

0 comments on commit 2c17163

Please sign in to comment.