From 618ca1e92b6953de0ea9ece52b261058da9ec71d Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Sun, 22 Sep 2013 03:13:09 +0200 Subject: [PATCH] Remove dead code Problem reported by Coverity: at_most: At condition "io_res < 0", the value of "io_res" must be at most -1. dead_error_condition: The condition "io_res < 0" must be true. CID 1090328 (#1 of 1): Logically dead code (DEADCODE) dead_error_line: Execution cannot reach this expression "0" inside statement "return (io_res < 0) ? io_re...". --- libnfc/nfc-emulation.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libnfc/nfc-emulation.c b/libnfc/nfc-emulation.c index 026849a..1596e43 100644 --- a/libnfc/nfc-emulation.c +++ b/libnfc/nfc-emulation.c @@ -71,6 +71,6 @@ nfc_emulate_target(nfc_device *pnd, struct nfc_emulator *emulator, const int tim szRx = res; } } - return (io_res < 0) ? io_res : 0; + return io_res; }