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;
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to