diff options
| author | Eric van Gyzen <vangyzen@FreeBSD.org> | 2020-09-18 16:48:08 +0000 |
|---|---|---|
| committer | Eric van Gyzen <vangyzen@FreeBSD.org> | 2020-09-18 16:48:08 +0000 |
| commit | f9cc8410e16ab0870c218b7a9541464ef10a8d34 (patch) | |
| tree | 70cab1a48a5c749a8b8d98b017db20d8f4dd42a7 /sys/dev/vt/hw | |
| parent | 6dadc5d1cdec44cad788c3cc5135ddb858885212 (diff) | |
Notes
Diffstat (limited to 'sys/dev/vt/hw')
| -rw-r--r-- | sys/dev/vt/hw/fb/vt_fb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/vt/hw/fb/vt_fb.c b/sys/dev/vt/hw/fb/vt_fb.c index 58111ada3668..01850f789d29 100644 --- a/sys/dev/vt/hw/fb/vt_fb.c +++ b/sys/dev/vt/hw/fb/vt_fb.c @@ -140,7 +140,7 @@ vt_fb_mmap(struct vt_device *vd, vm_ooffset_t offset, vm_paddr_t *paddr, if (info->fb_flags & FB_FLAG_NOMMAP) return (ENODEV); - if (offset >= 0 && offset < info->fb_size) { + if (offset < info->fb_size) { if (info->fb_pbase == 0) { *paddr = vtophys((uint8_t *)info->fb_vbase + offset); } else { |
