OpenCloudOS-Kernel/drivers/nfc/nfcmrvl
Krzysztof Kozlowski 41a6bf50ee nfc: mrvl: skip impossible NCI_MAX_PAYLOAD_SIZE check
The nci_ctrl_hdr.plen field us u8, so checkign if it is bigger than
NCI_MAX_PAYLOAD_SIZE does not make any sense.  Fix warning reported by
Smatch:

    drivers/nfc/nfcmrvl/i2c.c:52 nfcmrvl_i2c_read() warn:
        impossible condition '(nci_hdr.plen > 255) => (0-255 > 255)'

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Link: https://lore.kernel.org/r/20210528124200.79655-6-krzysztof.kozlowski@canonical.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2021-05-28 15:05:55 -07:00
..
Kconfig nfc: Fix Kconfig indentation 2019-11-20 12:30:40 -08:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
fw_dnld.c treewide: setup_timer() -> timer_setup() (2 field) 2017-11-21 15:57:09 -08:00
fw_dnld.h NFC: nfcmrvl: fix kernel-doc syntax in file headers 2021-05-23 17:26:38 -07:00
i2c.c nfc: mrvl: skip impossible NCI_MAX_PAYLOAD_SIZE check 2021-05-28 15:05:55 -07:00
main.c NFC: nfcmrvl: fix gpio-handling regression 2019-08-05 10:25:48 -07:00
nfcmrvl.h NFC: nfcmrvl: fix kernel-doc syntax in file headers 2021-05-23 17:26:38 -07:00
spi.c nfc: mrvl: mark OF device ID tables as maybe unused 2021-05-28 15:05:55 -07:00
uart.c NFC: nfcmrvl: fix kernel-doc syntax in file headers 2021-05-23 17:26:38 -07:00
usb.c NFC: nfcmrvl: fix kernel-doc syntax in file headers 2021-05-23 17:26:38 -07:00