aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/vt
diff options
context:
space:
mode:
authorEric van Gyzen <vangyzen@FreeBSD.org>2020-09-18 16:48:08 +0000
committerEric van Gyzen <vangyzen@FreeBSD.org>2020-09-18 16:48:08 +0000
commitf9cc8410e16ab0870c218b7a9541464ef10a8d34 (patch)
tree70cab1a48a5c749a8b8d98b017db20d8f4dd42a7 /sys/dev/vt
parent6dadc5d1cdec44cad788c3cc5135ddb858885212 (diff)
downloadsrc-f9cc8410e16ab0870c218b7a9541464ef10a8d34.tar.gz
src-f9cc8410e16ab0870c218b7a9541464ef10a8d34.zip
vm_ooffset_t is now unsigned
vm_ooffset_t is now unsigned. Remove some tests for negative values, or make other adjustments accordingly. Reported by: Coverity Reviewed by: kib markj Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D26214
Notes
Notes: svn path=/head/; revision=365886
Diffstat (limited to 'sys/dev/vt')
-rw-r--r--sys/dev/vt/hw/fb/vt_fb.c2
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 {