svn commit: r268472 - head/sys/dev/fb
Aleksandr Rybalko
ray at FreeBSD.org
Wed Jul 9 21:55:34 UTC 2014
Author: ray
Date: Wed Jul 9 21:55:34 2014
New Revision: 268472
URL: http://svnweb.freebsd.org/changeset/base/268472
Log:
Should check fb_read method presence instead of double check for fb_write.
Pointed by: emaste
Sponsored by: The FreeBSD Foundation
Modified:
head/sys/dev/fb/fbd.c
Modified: head/sys/dev/fb/fbd.c
==============================================================================
--- head/sys/dev/fb/fbd.c Wed Jul 9 21:39:40 2014 (r268471)
+++ head/sys/dev/fb/fbd.c Wed Jul 9 21:55:34 2014 (r268472)
@@ -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;
More information about the svn-src-head
mailing list