From 4c90483ad066ae42ec9d86e2b250f7dc96f72dfd Mon Sep 17 00:00:00 2001 From: Javier Martinez Canillas Date: Mon, 4 Feb 2013 11:55:14 +0100 Subject: simple: use libfs simple_open libfs now has a simple_open handler functions that is a noop. So, is better to use this instead of a custom implementation. Signed-off-by: Javier Martinez Canillas --- simple/simple.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/simple/simple.c b/simple/simple.c index e3bf01e..c1f9438 100644 --- a/simple/simple.c +++ b/simple/simple.c @@ -36,14 +36,6 @@ module_param(simple_major, int, 0); MODULE_AUTHOR("Jonathan Corbet"); MODULE_LICENSE("Dual BSD/GPL"); -/* - * Open the device; in fact, there's nothing to do here. - */ -static int simple_open (struct inode *inode, struct file *filp) -{ - return 0; -} - /* * Closing is just as simpler. -- cgit v1.2.1-18-gbd029