aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/fb
diff options
context:
space:
mode:
authorAleksandr Rybalko <ray@FreeBSD.org>2014-07-09 21:55:34 +0000
committerAleksandr Rybalko <ray@FreeBSD.org>2014-07-09 21:55:34 +0000
commit79b647995de54b1d1d955e05f9a08d0c17066d91 (patch)
tree5ad39a5a74e3a4a12cfbf09395356fc87d82c6ca /sys/dev/fb
parentfd815c0b8dad8a7d9d74bfc09217943bda0f03a9 (diff)
Notes
Diffstat (limited to 'sys/dev/fb')
-rw-r--r--sys/dev/fb/fbd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/fb/fbd.c b/sys/dev/fb/fbd.c
index b75ca33516c4..66d0e8dea499 100644
--- a/sys/dev/fb/fbd.c
+++ b/sys/dev/fb/fbd.c
@@ -246,7 +246,7 @@ fb_probe(struct fb_info *info)
return (ENXIO);
if (info->fb_write != NULL) {
- if (info->fb_write == NULL) {
+ if (info->fb_read == NULL) {
return (EINVAL);
}
info->fb_flags |= FB_FLAG_NOMMAP;