]> asedeno.scripts.mit.edu Git - linux.git/commit
ext4: use sizeof(*ptr)
authorMarkus Elfring <elfring@users.sourceforge.net>
Thu, 24 Aug 2017 17:50:24 +0000 (13:50 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 24 Aug 2017 17:50:24 +0000 (13:50 -0400)
commitd695a1bea351276615ad270860bc1fbddcfbaeb3
tree33004cb952ec2f739c35b15f3e870e6eb5bf1fc2
parent1bd8d6cd3e413d64e543ec3e69ff43e75a1cf1ea
ext4: use sizeof(*ptr)

Replace the specification of data structures by pointer dereferences
as the parameter for the operator "sizeof" to make the corresponding size
determination a bit safer according to the Linux coding style convention.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
fs/ext4/dir.c
fs/ext4/mmp.c