diff options
| author | Alessandro Astone <ales.astone@gmail.com> | 2019-09-08 16:56:15 +0200 |
|---|---|---|
| committer | joshua primero <jprimero155@gmail.com> | 2019-09-08 17:17:18 +0200 |
| commit | 75b7597077d59d41208e105575883647455af46d (patch) | |
| tree | 0e8f9f4106ee1f6d538f024d306bd10baf222015 | |
| parent | 9e959f33d67d3beb8ba488ebd424c8d6f51b0e40 (diff) | |
| download | android_hardware_broadcom_nfc-lineage-17.1.tar.gz android_hardware_broadcom_nfc-lineage-17.1.tar.bz2 android_hardware_broadcom_nfc-lineage-17.1.zip | |
nfc: Deprecate register keywordHEADlineage-17.1lineage-17.0
* C++17 deprecates the register keyword
Let the compiler decide where the variables will live
Change-Id: I7ac7aee12105b6697c7d4f3aceb4e3bc8b6df367
| -rw-r--r-- | halimpl/bcm2079x/adaptation/CrcChecksum.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/halimpl/bcm2079x/adaptation/CrcChecksum.cpp b/halimpl/bcm2079x/adaptation/CrcChecksum.cpp index af20f6e..e003e30 100644 --- a/halimpl/bcm2079x/adaptation/CrcChecksum.cpp +++ b/halimpl/bcm2079x/adaptation/CrcChecksum.cpp @@ -69,9 +69,9 @@ static const unsigned short crctab[256] = { ** *******************************************************************************/ unsigned short crcChecksumCompute(const unsigned char* buffer, int bufferLen) { - register unsigned short crc = 0; - const register unsigned char* cp = buffer; - register int cnt = bufferLen; + unsigned short crc = 0; + const unsigned char* cp = buffer; + int cnt = bufferLen; while (cnt--) { crc = ((crc >> 8) & 0xff) ^ crctab[(crc & 0xff) ^ *cp++]; |
