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/common | |
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/common')
-rw-r--r-- | stand/common/md.c | 1 | ||||
-rw-r--r-- | stand/common/vdisk.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/stand/common/md.c b/stand/common/md.c index e9fcac668d93..61db56ece7ae 100644 --- a/stand/common/md.c +++ b/stand/common/md.c @@ -74,6 +74,7 @@ struct devsw md_dev = { .dv_close = md_close, .dv_ioctl = noioctl, .dv_print = md_print, + .dv_cleanup = nullsys, }; static int diff --git a/stand/common/vdisk.c b/stand/common/vdisk.c index 521ad498b194..c904613a8e91 100644 --- a/stand/common/vdisk.c +++ b/stand/common/vdisk.c @@ -52,7 +52,7 @@ struct devsw vdisk_dev = { .dv_close = vdisk_close, .dv_ioctl = vdisk_ioctl, .dv_print = vdisk_print, - .dv_cleanup = NULL + .dv_cleanup = nullsys, }; typedef STAILQ_HEAD(vdisk_info_list, vdisk_info) vdisk_info_list_t; |