diff mbox

[2/5] libdvbv5: Fix set delsys other than current

Message ID 1341602592-29508-2-git-send-email-neolynx@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

André Roth July 6, 2012, 7:23 p.m. UTC
Signed-off-by: André Roth <neolynx@gmail.com>
---
 lib/libdvbv5/dvb-fe.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff mbox

Patch

diff --git a/lib/libdvbv5/dvb-fe.c b/lib/libdvbv5/dvb-fe.c
index 4fb927a..9b18226 100644
--- a/lib/libdvbv5/dvb-fe.c
+++ b/lib/libdvbv5/dvb-fe.c
@@ -392,8 +392,8 @@  int dvb_set_compat_delivery_system(struct dvb_v5_fe_parms *parms,
 	for (i = 0; i < parms->num_systems; i++) {
 		if (parms->systems[i] == desired_system) {
 			dvb_set_sys(parms, desired_system);
+			return 0;
 		}
-		return 0;
 	}
 
 	/*