diff options
author | Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> | 2021-07-29 13:40:20 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-07-29 14:28:03 +0300 |
commit | a751449f8b477e0e1d97f778ed97ae9f6576b690 (patch) | |
tree | e4ae44bcda01ca970cb4668dce8135b7cab0d5fd /drivers/nfc/microread/i2c.c | |
parent | 3d463dd5023b5a58b3c37207d65eeb5acbac2be3 (diff) | |
download | linux-a751449f8b477e0e1d97f778ed97ae9f6576b690.tar.xz |
nfc: microread: constify several pointers
Several functions do not modify pointed data so arguments and local
variables can be 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 'drivers/nfc/microread/i2c.c')
-rw-r--r-- | drivers/nfc/microread/i2c.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nfc/microread/i2c.c b/drivers/nfc/microread/i2c.c index f91760c78455..86f593c73ed6 100644 --- a/drivers/nfc/microread/i2c.c +++ b/drivers/nfc/microread/i2c.c @@ -73,7 +73,7 @@ static void microread_i2c_remove_len_crc(struct sk_buff *skb) skb_trim(skb, MICROREAD_I2C_FRAME_TAILROOM); } -static int check_crc(struct sk_buff *skb) +static int check_crc(const struct sk_buff *skb) { int i; u8 crc = 0; |