diff options
author | Warner Losh <imp@FreeBSD.org> | 2022-07-27 14:46:21 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2022-07-27 15:04:13 +0000 |
commit | e98f952c82907ec39cebb4e66efd92691c835e05 (patch) | |
tree | ca666ed59e44966ca2d66deae750cc69710a27ac /stand/kboot | |
parent | 079f02e8c035f12779a57f10b274253a701267e5 (diff) | |
download | src-e98f952c82907ec39cebb4e66efd92691c835e05.tar.gz src-e98f952c82907ec39cebb4e66efd92691c835e05.zip |
stand: Make sure nobody has a NULL pointer for dv_cleanup
dv_cleanup is specified almost everywhere. Use nullsys instead of NULL
to indicate 'do nothing'. Also, be consistent in trailing commas that
were missing before.
Sponsored by: Netflix
Reviewed by: tsoome
Differential Revision: https://reviews.freebsd.org/D35913
Diffstat (limited to 'stand/kboot')
-rw-r--r-- | stand/kboot/hostdisk.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/stand/kboot/hostdisk.c b/stand/kboot/hostdisk.c index 25348c60fc97..cd125350ce9b 100644 --- a/stand/kboot/hostdisk.c +++ b/stand/kboot/hostdisk.c @@ -48,6 +48,7 @@ struct devsw hostdisk = { .dv_close = hostdisk_close, .dv_ioctl = hostdisk_ioctl, .dv_print = hostdisk_print, + .dv_cleanup = nullsys, }; static int |