]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
rpmsg: Constify local variable in field store macro
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Tue, 31 Oct 2023 11:25:36 +0000 (11:25 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Nov 2023 16:26:44 +0000 (17:26 +0100)
commit5c0da71871d3ac3f96d37067bf1a0ba9c25c2c72
tree6986aada6ca46dacb9da406987a3cdd15db1a7aa
parent389190b25472627d010a9eb3c5a7227c3e92fa08
rpmsg: Constify local variable in field store macro

commit e5f89131a06142e91073b6959d91cea73861d40e upstream.

Memory pointed by variable 'old' in field store macro is not modified,
so it can be made a pointer to const.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20220419113435.246203-12-krzysztof.kozlowski@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Lee Jones <lee@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/rpmsg/rpmsg_core.c