Thread (2 messages) 2 messages, 2 authors, 2024-06-09

Re: [PATCH] Input: joystick - use sizeof(*pointer) instead of sizeof(type)

From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Date: 2024-06-09 21:41:20
Also in: linux-hardening, lkml

On Sat, Jun 08, 2024 at 05:13:57PM +0200, Erick Archer wrote:
It is preferred to use sizeof(*pointer) instead of sizeof(type)
due to the type of the variable can change and one needs not
change the former (unlike the latter).

At the same time refactor the code to not use assignment in "if"
conditions.

This patch has no effect on runtime behavior.

Signed-off-by: Erick Archer <redacted>
Applied, thank you.

-- 
Dmitry
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help