diff options
| author | Andy Shevchenko <[email protected]> | 2023-10-18 14:59:48 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2023-10-21 21:04:23 +0000 |
| commit | 421359cbdbdcaea93b83e1e6b61eb261b75b1998 (patch) | |
| tree | d5fb629641010cd05708c8d5c6dcffc745d0efc0 /drivers/cdx/controller/cdx_controller.c | |
| parent | parport: Clean up resources correctly when parport_register_port() fails (diff) | |
| download | kernel-421359cbdbdcaea93b83e1e6b61eb261b75b1998.tar.gz kernel-421359cbdbdcaea93b83e1e6b61eb261b75b1998.zip | |
parport: Drop even more unneeded NULL or 0 assignments
kzalloc() gives us a zeroed memory, no need to explicitly assing 0 or
NULL or similar to the members of the data structure that has been
allocated with the above mentioned API.
Note, the initializstion of full_list member is not needed anymore
as list_add_tail will rewrite the contents of the prev and next
pointers.
Signed-off-by: Andy Shevchenko <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/cdx/controller/cdx_controller.c')
0 files changed, 0 insertions, 0 deletions
