aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/vt/hw
diff options
context:
space:
mode:
authorJean-Sébastien Pédron <dumbbell@FreeBSD.org>2023-01-14 18:22:56 +0000
committerJean-Sébastien Pédron <dumbbell@FreeBSD.org>2023-01-25 21:26:57 +0000
commit29ab19455484be96150fa5e87bd38aefb85c888a (patch)
tree803184adb5ba04d7002028cfc4ddee987a76d1e9 /sys/dev/vt/hw
parent9491ea7c68221ca7bc5e369ebb57660886ef1b13 (diff)
Diffstat (limited to 'sys/dev/vt/hw')
-rw-r--r--sys/dev/vt/hw/fb/vt_fb.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/dev/vt/hw/fb/vt_fb.c b/sys/dev/vt/hw/fb/vt_fb.c
index 093bf35ac6ba..8e0d6c035f9a 100644
--- a/sys/dev/vt/hw/fb/vt_fb.c
+++ b/sys/dev/vt/hw/fb/vt_fb.c
@@ -517,19 +517,21 @@ vt_fb_fini(struct vt_device *vd, void *softc)
int
vt_fb_attach(struct fb_info *info)
{
+ int ret;
- vt_allocate(&vt_fb_driver, info);
+ ret = vt_allocate(&vt_fb_driver, info);
- return (0);
+ return (ret);
}
int
vt_fb_detach(struct fb_info *info)
{
+ int ret;
- vt_deallocate(&vt_fb_driver, info);
+ ret = vt_deallocate(&vt_fb_driver, info);
- return (0);
+ return (ret);
}
void