From 967f6e5623af485574d4caf7fd2c089edcff32ad Mon Sep 17 00:00:00 2001 From: Ludovic Rousseau Date: Thu, 19 Sep 2013 20:34:58 +0200 Subject: [PATCH] Remove dead code The switch case has a default rule and a return in every cases. So the code after the switch will never be executed. Problem reported by thei Coverity tool CID 1090408 (#1 of 1): Structurally dead code (UNREACHABLE)unreachable: This code cannot be reached: "if (pn53x_current_target_ne...". --- libnfc/chips/pn53x.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/libnfc/chips/pn53x.c b/libnfc/chips/pn53x.c index e89f4e5..efec75f 100644 --- a/libnfc/chips/pn53x.c +++ b/libnfc/chips/pn53x.c @@ -1209,9 +1209,6 @@ pn53x_initiator_poll_target(struct nfc_device *pnd, return NFC_ECHIP; break; } - if (pn53x_current_target_new(pnd, pnt) == NULL) { - return NFC_ESOFT; - } } else { pn53x_set_property_bool(pnd, NP_INFINITE_SELECT, true); // FIXME It does not support DEP targets