git: sys/vfs/hammer2: Remove unused lbase local variables for hammer2_calc_logical()

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Mon Oct 30 00:51:15 PDT 2023


commit da9dedd0a7779b90df81e7001227e9b3ecef4165
Author: Tomohiro Kusumi <tkusumi at netbsd.org>
Date:   Mon Oct 30 00:12:09 2023 -0700

    sys/vfs/hammer2: Remove unused lbase local variables for hammer2_calc_logical()
    
    These variables are never used after assigned values.
    
    If the third argument is NULL, the second argument is unused either,
    in which case 0 is usually passed. If the fourth argument is NULL,
    the first argument is unused either, in which case NULL can be passed.
    
    (So if at least the last 2 arguments are NULL, caller is just looking
    for an fs block size, which is always 64KB...)

Summary of changes:
 sys/vfs/hammer2/hammer2_vnops.c | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/da9dedd0a7779b90df81e7001227e9b3ecef4165


-- 
DragonFly BSD source repository


More information about the Commits mailing list