summaryrefslogtreecommitdiffstats
path: root/simple
diff options
context:
space:
mode:
authorJavier Martinez Canillas <javier@dowhile0.org>2013-02-04 11:55:14 +0100
committerJavier Martinez Canillas <javier.martinez@collabora.co.uk>2013-02-04 11:55:14 +0100
commit4c90483ad066ae42ec9d86e2b250f7dc96f72dfd (patch)
tree52e5978128de4281e2e446b71e53749e025d2573 /simple
parente55d3a8260461a1564d0d26141089ca07f907b6d (diff)
downloadldd3-4c90483ad066ae42ec9d86e2b250f7dc96f72dfd.tar.gz
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 <javier@dowhile0.org>
Diffstat (limited to 'simple')
-rw-r--r--simple/simple.c8
1 files changed, 0 insertions, 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.