Alejandro Colomar efbbcade43 Use safer allocation macros
Use of these macros, apart from the benefits mentioned in the commit
that adds the macros, has some other good side effects:

-  Consistency in getting the size of the object from sizeof(type),
   instead of a mix of sizeof(type) sometimes and sizeof(*p) other
   times.

-  More readable code: no casts, and no sizeof(), so also shorter lines
   that we don't need to cut.

-  Consistency in using array allocation calls for allocations of arrays
   of objects, even when the object size is 1.

Cc: Valentin V. Bartenev <vbartenev@gmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
2023-02-23 20:28:43 -06:00
..
2023-02-23 20:28:43 -06:00
2023-02-09 10:03:03 -06:00
2023-02-23 20:28:43 -06:00
2023-02-09 10:03:03 -06:00
2021-12-23 19:36:50 -06:00
2023-01-30 18:24:15 +01:00
2022-08-06 11:27:56 -05:00
2022-09-02 20:27:14 -05:00
2021-12-23 19:36:50 -06:00
2022-08-17 12:34:01 -05:00
2023-02-09 10:03:03 -06:00
2023-02-09 10:03:03 -06:00
2023-02-16 13:23:08 -06:00
2021-12-23 19:36:50 -06:00
2023-02-09 10:03:03 -06:00
2023-02-23 20:28:43 -06:00
2023-02-23 20:28:43 -06:00
2023-02-23 20:28:43 -06:00
2023-02-09 10:03:03 -06:00
2022-12-22 10:31:43 +01:00
2023-02-23 20:28:43 -06:00
2022-12-22 11:43:29 +01:00
2022-12-22 11:43:29 +01:00
2023-02-23 20:28:43 -06:00
2021-12-23 19:36:50 -06:00
2023-02-09 10:03:03 -06:00
2022-08-06 11:27:56 -05:00
2023-02-09 10:03:03 -06:00
2023-02-09 10:03:03 -06:00
2023-02-23 20:28:43 -06:00
2022-08-06 11:27:56 -05:00
2023-02-09 10:03:03 -06:00
2023-02-09 10:03:03 -06:00
2023-02-23 20:28:43 -06:00
2023-02-09 10:03:03 -06:00
2023-02-23 20:28:43 -06:00
2023-02-23 20:28:43 -06:00
2023-02-23 20:28:43 -06:00
2023-02-16 11:29:33 +01:00
2023-02-23 20:28:43 -06:00
2021-12-23 19:36:50 -06:00
2023-02-23 20:28:43 -06:00
2022-12-22 11:43:29 +01:00
2023-02-23 20:28:43 -06:00
2023-02-09 10:03:03 -06:00
2022-12-15 16:22:05 -06:00
2023-02-02 13:08:30 -06:00
2022-08-17 12:34:01 -05:00
2022-12-15 16:22:05 -06:00
2023-02-09 10:03:03 -06:00
2021-12-23 19:36:50 -06:00
2023-02-23 20:28:43 -06:00
2023-02-02 13:08:30 -06:00
2023-02-16 11:29:33 +01:00
2023-02-16 11:29:33 +01:00
2021-12-23 19:36:50 -06:00
2023-02-02 13:08:30 -06:00
2023-02-09 10:03:03 -06:00
2023-02-09 10:03:03 -06:00
2023-02-16 13:23:08 -06:00
2023-02-23 20:28:43 -06:00
2021-12-23 19:36:50 -06:00
2023-02-16 13:23:08 -06:00
2023-02-16 13:23:08 -06:00
2023-01-26 22:44:39 -06:00
2023-02-16 13:23:08 -06:00
2023-02-16 13:23:08 -06:00
2023-02-23 20:28:43 -06:00
2023-02-09 10:03:03 -06:00