nfc: constify several pointers to u8, char and sk_buff
Several functions receive pointers to u8, char or sk_buff but do not modify the contents so make them const. This allows doing the same for local variables and in total makes the code a little bit safer. Signed-off-by:Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> Signed-off-by:
Jakub Kicinski <kuba@kernel.org>
Showing
- include/net/nfc/nfc.h 2 additions, 2 deletionsinclude/net/nfc/nfc.h
- net/nfc/core.c 2 additions, 2 deletionsnet/nfc/core.c
- net/nfc/hci/llc_shdlc.c 5 additions, 5 deletionsnet/nfc/hci/llc_shdlc.c
- net/nfc/llcp.h 4 additions, 4 deletionsnet/nfc/llcp.h
- net/nfc/llcp_commands.c 25 additions, 21 deletionsnet/nfc/llcp_commands.c
- net/nfc/llcp_core.c 24 additions, 20 deletionsnet/nfc/llcp_core.c
- net/nfc/nfc.h 1 addition, 1 deletionnet/nfc/nfc.h
Please register or sign in to comment