diff options
author | Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> | 2021-07-24 23:49:23 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-07-25 09:21:21 +0100 |
commit | 15944ad2e5a1cc2ef2c6fa60b04e464dbb4ddb61 (patch) | |
tree | 1e6eaa905b18ddca5743a5f3b4b758d937dfe83e /net/nfc | |
parent | 0f20ae9bb96be60f50d51feb37f1435dac5687ea (diff) | |
download | linux-15944ad2e5a1cc2ef2c6fa60b04e464dbb4ddb61.tar.bz2 |
nfc: constify pointer to nfc_vendor_cmd
Neither the core nor the drivers modify the passed pointer to struct
nfc_vendor_cmd, so make it a pointer to const for correctness and
safety.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/nfc')
-rw-r--r-- | net/nfc/netlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/nfc/netlink.c b/net/nfc/netlink.c index 722f7ef891e1..70467a82be8f 100644 --- a/net/nfc/netlink.c +++ b/net/nfc/netlink.c @@ -1531,7 +1531,7 @@ static int nfc_genl_vendor_cmd(struct sk_buff *skb, struct genl_info *info) { struct nfc_dev *dev; - struct nfc_vendor_cmd *cmd; + const struct nfc_vendor_cmd *cmd; u32 dev_idx, vid, subcmd; u8 *data; size_t data_len; |