From 968f59a988323e9cc42c05ea9bf83ac168912375 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Thu, 16 Feb 2017 23:05:02 +0100 Subject: [PATCH] Remove unneeded test, fix issue #376 --- libnfc/nfc-internal.c | 1 - 1 file changed, 1 deletion(-) diff --git a/libnfc/nfc-internal.c b/libnfc/nfc-internal.c index b0beae1..68ecd34 100644 --- a/libnfc/nfc-internal.c +++ b/libnfc/nfc-internal.c @@ -242,7 +242,6 @@ connstring_decode(const nfc_connstring connstring, const char *driver_name, cons int res = sscanf(connstring, format, param0, param1, param2); if (res < 1 || ((0 != strcmp(param0, driver_name)) && - (bus_name != NULL) && (0 != strcmp(param0, bus_name)))) { // Driver name does not match. res = 0;