Re: [PATCH] tty: mxser: Remove __counted_by from mxser_board.ports[]

2024-06-02 Thread Jiri Slaby
On 30. 05. 24, 10:46, Gustavo A. R. Silva wrote: So we should get rid of all those. Sooner than later. Yes! Please do this. Definitely, we are working on that already[1]. :) FWIW undoing: commit 7391ee16950e772076d321792d9fbf030f921345 Author: Peter Hurley Date: Sat Jun 15 09:36:07 201

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

2024-06-02 Thread Dmitry Torokhov
On Sun, Jun 02, 2024 at 07:10:47PM +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). This patch has no effect > on runtime behavior. > > Signed-off-by:

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

2024-06-02 Thread Dmitry Torokhov
On Sun, Jun 02, 2024 at 06:59:01PM +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). This patch has no effect > on runtime behavior. > > Signed-off-by:

Re: [PATCH] input: misc: use sizeof(*pointer) instead of sizeof(type)

2024-06-02 Thread Dmitry Torokhov
On Sun, Jun 02, 2024 at 06:32:58PM +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). This patch has no effect > on runtime behavior. > > Signed-off-by:

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

2024-06-02 Thread Dmitry Torokhov
On Fri, May 24, 2024 at 07:33:08PM +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). This patch has no effect > on runtime behavior. > > Signed-off-by:

[PATCH] iio: event: use sizeof(*pointer) instead of sizeof(type)

2024-06-02 Thread Erick Archer
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 NULL comparison. This patch has no effect on runtime behavior. Signed-off-by: Erick Archer --- driver

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

2024-06-02 Thread Erick Archer
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). This patch has no effect on runtime behavior. Signed-off-by: Erick Archer --- drivers/input/tablet/acecad.c| 2 +- drivers/i

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

2024-06-02 Thread Erick Archer
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). This patch has no effect on runtime behavior. Signed-off-by: Erick Archer --- drivers/input/mouse/alps.c | 2 +- drivers/in

[PATCH] input: misc: use sizeof(*pointer) instead of sizeof(type)

2024-06-02 Thread Erick Archer
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). This patch has no effect on runtime behavior. Signed-off-by: Erick Archer --- drivers/input/misc/88pm80x_onkey.c | 2 +- drivers/in

[PATCH 2/2] atmel: at76c50x: prefer struct_size over open coded arithmetic

2024-06-02 Thread Erick Archer
This is an effort to get rid of all multiplications from allocation functions in order to prevent integer overflows [1][2]. As the "cmd_buf" variable is a pointer to "struct at76_command" and this structure ends in a flexible array: struct at76_command { [...] u8 data[]; } __packe

[PATCH 1/2] atmel: at76c50x: use sizeof(*pointer) instead of sizeof(type)

2024-06-02 Thread Erick Archer
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). This patch has no effect on runtime behavior. At the same time remove some redundant NULL initializations. Signed-off-by: Erick Arche

[PATCH 0/2] atmel: at76c50x: improve code robustness

2024-06-02 Thread Erick Archer
Hi, This series of patches attempts to improve the at76c50x code robustness. In the first patch, 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). The second patch is an effort to ge

[PATCH] auxdisplay: Use sizeof(*pointer) instead of sizeof(type)

2024-06-02 Thread Erick Archer
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). This patch has no effect on runtime behavior. Signed-off-by: Erick Archer --- drivers/auxdisplay/arm-charlcd.c | 2 +- drivers/auxdi

[PATCH] soc: fsl: qe: use sizeof(*pointer) instead of sizeof(type)

2024-06-02 Thread Erick Archer
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). This patch has no effect on runtime behavior. Signed-off-by: Erick Archer --- drivers/soc/fsl/qe/ucc_fast.c | 2 +- drivers/soc/fsl/

[PATCH] nvdimm/btt: use sizeof(*pointer) instead of sizeof(type)

2024-06-02 Thread Erick Archer
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). This patch has no effect on runtime behavior. Signed-off-by: Erick Archer --- drivers/nvdimm/btt.c | 4 ++-- 1 file changed, 2 inser