Remove unreachable statements

As seen with clang -Wunreachable-code
This commit is contained in:
Philippe Teuwen 2014-03-04 01:27:01 +01:00
parent 7adad098c3
commit db4fae9c2c
5 changed files with 6 additions and 64 deletions

View file

@ -97,7 +97,6 @@ nfc_initiator_jewel_cmd(nfc_device *pnd, const jewel_req req, jewel_res *pres)
break;
default:
return false;
break;
}
if (nfc_initiator_transceive_bytes(pnd, (uint8_t *)&req, nLenReq, (uint8_t *)pres, nLenRes, -1) < 0) {

View file

@ -95,7 +95,6 @@ nfc_initiator_mifare_cmd(nfc_device *pnd, const mifare_cmd mc, const uint8_t ui8
// Please fix your code, you never should reach this statement
default:
return false;
break;
}
// When available, copy the parameter bytes

View file

@ -178,7 +178,6 @@ main(int argc, char *argv[])
case 'h':
print_usage(argv[0]);
exit(EXIT_SUCCESS);
break;
case 'q':
quiet = true;
break;