summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
Diffstat (limited to 'hw')
-rw-r--r--hw/sdr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/sdr.c b/hw/sdr.c
index 5bdf21e..4675ce2 100644
--- a/hw/sdr.c
+++ b/hw/sdr.c
@@ -157,7 +157,7 @@ int sdr_close( sdr_t *sdr )
{
if ( sdr->dongle != NULL )
{
- if ( sdr->dongle->dev == NULL )
+ if ( sdr->dongle->dev != NULL )
{
hw_close( sdr->dongle->dev );
free( sdr->dongle->dev );