Skip to content
Commit ee102584 authored by Zhengyuan Liu's avatar Zhengyuan Liu Committed by David Howells
Browse files

fs/afs: use struct_size() in kzalloc()



As Gustavo said in other patches doing the same replace, we can now
use the new struct_size() helper to avoid leaving these open-coded and
prone to type mistake.

Signed-off-by: default avatarZhengyuan Liu <liuzhengyuan@kylinos.cn>
Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
parent 45218193
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment