[PATCH] fb_ioctl optimization

From: James Simmons (jsimmons@acsu.buffalo.edu)
Date: Sun May 07 2000 - 19:18:51 EST


Hi!

  This patch saves on a needless function call and saves on some needless
code duplication.

Q: Why did they deprecate a.out support in linux?
A: Because a nasty coff is bad for your elf.

James Simmons [jsimmons@linux-fbdev.org] ____/|
fbdev/gfx developer \ o.O|
http://www.linux-fbdev.org =(_)=
http://linuxgfx.sourceforge.net U

--- fbmem.c.orig Sun May 7 12:00:28 2000
+++ fbmem.c Sun May 7 12:01:13 2000
@@ -418,8 +418,10 @@
                 (*info->blank)(arg, info);
                 return 0;
         default:
- return fb->fb_ioctl(inode, file, cmd, arg, PROC_CONSOLE(info),
- info);
+ if (fb->fb_ioctl)
+ return fb->fb_ioctl(inode, file, cmd, arg,
+ PROC_CONSOLE(info), info);
+ return -EINVAL;
         }
 }
 

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun May 07 2000 - 21:00:21 EST