Unverified Commit e60625e7 authored by Thorsten Blum's avatar Thorsten Blum Committed by Christian Brauner
Browse files

initramfs: Use struct_size() helper to improve dir_add()



Use struct_size() to calculate the number of bytes to allocate for a new
directory entry.  No functional changes.

Signed-off-by: default avatarThorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: default avatarChristian Brauner <brauner@kernel.org>
parent 84f1766b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment