git: msdosfs: clusterfree() is used only in error handling cases

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Sun Jan 30 07:55:09 PST 2022


commit 011c75d35238f71e76c704a45cc3eab082f4b5ce
Author: Tomohiro Kusumi <tkusumi at netbsd.org>
Date:   Sun Jan 30 23:30:07 2022 +0900

    msdosfs: clusterfree() is used only in error handling cases
    
    Change its return type to void, because its result is ignored in both
    call sites.  Remove oldcnp argument as well, it is NULL always.
    
    taken-from FreeBSD 65990b68a2cd89a08f0350e187df1968b16f4255

Summary of changes:
 sys/vfs/msdosfs/fat.h                 |  2 +-
 sys/vfs/msdosfs/msdosfs_fat.c         | 13 +++++--------
 sys/vfs/msdosfs/msdosfs_vnops.c       |  2 +-
 usr.sbin/makefs/msdos/msdosfs_fat.c   | 13 +++++--------
 usr.sbin/makefs/msdos/msdosfs_vnops.c |  2 +-
 5 files changed, 13 insertions(+), 19 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/011c75d35238f71e76c704a45cc3eab082f4b5ce


-- 
DragonFly BSD source repository



More information about the Commits mailing list