]> git.baikalelectronics.ru Git - kernel.git/commit
nfc: constify payload argument in nci_send_cmd()
authorKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Sat, 24 Jul 2021 21:47:32 +0000 (23:47 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 25 Jul 2021 08:21:20 +0000 (09:21 +0100)
commitc8d05446596fe813e07a9401ce2c03f644497a24
tree9275a24803d56301586e8257b6b11fc09943c523
parent7ed08ec3d9ba6dd8e40091284b79b5dca9565b94
nfc: constify payload argument in nci_send_cmd()

The nci_send_cmd() payload argument is passed directly to skb_put_data()
which already accepts a pointer to const, so make it const as well for
correctness and safety.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/nfc/nci_core.h
net/nfc/nci/core.c