From 54729fb4581d8cbe722292eb3ba73e76711bd461 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Sun, 22 Sep 2013 03:09:08 +0200 Subject: [PATCH] Remove dead code Problem reported by Coverity: dead_error_condition: The switch value "nbr" cannot be "NBR_UNDEFINED". CID 1090326 (#1 of 2): Logically dead code (DEADCODE) dead_error_begin: Execution cannot reach this statement "case NBR_UNDEFINED:". --- libnfc/chips/pn53x.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/libnfc/chips/pn53x.c b/libnfc/chips/pn53x.c index bb25dd8..36f174e 100644 --- a/libnfc/chips/pn53x.c +++ b/libnfc/chips/pn53x.c @@ -2557,11 +2557,6 @@ pn53x_InJumpForDEP(struct nfc_device *pnd, memcpy(abtCmd + offset, pbtPassiveInitiatorData, 5); offset += 5; break; - case NBR_847: - case NBR_UNDEFINED: - pnd->last_error = NFC_EINVARG; - return pnd->last_error; - break; } }