]> www.infradead.org Git - users/hch/misc.git/commit
ext4: hash: simplify kzalloc(n * 1, ...) to kzalloc(n, ...)
authorEthan Carter Edwards <ethan@ethancedwards.com>
Sun, 16 Mar 2025 05:33:59 +0000 (01:33 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 21 Mar 2025 05:10:10 +0000 (01:10 -0400)
commit1e93d6f221e7cfe5e069583a2b664e79eb361ba6
tree84f2749dbc941a1fc8b12c5d9af6d91a806d91af
parentaac45075f6d79a63ac8dff93b3e1d7053a6ba628
ext4: hash: simplify kzalloc(n * 1, ...) to kzalloc(n, ...)

sizeof(char) evaluates to 1. Remove the churn.

Signed-off-by: Ethan Carter Edwards <ethan@ethancedwards.com>
Reviewed-by: Andreas Dilger <adilger@dilger.ca>
Link: https://patch.msgid.link/20250316-ext4-hash-kcalloc-v2-1-2a99e93ec6e0@ethancedwards.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/hash.c