summaryrefslogtreecommitdiffstats
path: root/drivers/ntb
diff options
context:
space:
mode:
authorJon Mason <jon.mason@intel.com>2013-01-19 10:02:20 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-01-21 00:45:51 +0100
commitd66d7ac2e09f26dbcd3bfbd8bb05e658de89719a (patch)
tree1e597cb525f12ff15414f381895f2fc2d0e385bc /drivers/ntb
parentNTB: No sleeping in interrupt context (diff)
downloadlinux-d66d7ac2e09f26dbcd3bfbd8bb05e658de89719a.tar.xz
linux-d66d7ac2e09f26dbcd3bfbd8bb05e658de89719a.zip
NTB: use simple_open for debugfs
Use simple_open for debugfs instead of recreating it in the NTB driver. Caught by coccicheck. Signed-off-by: Jon Mason <jon.mason@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/ntb')
-rw-r--r--drivers/ntb/ntb_transport.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/ntb/ntb_transport.c b/drivers/ntb/ntb_transport.c
index bf7ade14c742..c0eca02eb6d0 100644
--- a/drivers/ntb/ntb_transport.c
+++ b/drivers/ntb/ntb_transport.c
@@ -364,12 +364,6 @@ void ntb_unregister_client(struct ntb_client *drv)
}
EXPORT_SYMBOL_GPL(ntb_unregister_client);
-static int debugfs_open(struct inode *inode, struct file *filp)
-{
- filp->private_data = inode->i_private;
- return 0;
-}
-
static ssize_t debugfs_read(struct file *filp, char __user *ubuf, size_t count,
loff_t *offp)
{
@@ -425,7 +419,7 @@ static ssize_t debugfs_read(struct file *filp, char __user *ubuf, size_t count,
static const struct file_operations ntb_qp_debugfs_stats = {
.owner = THIS_MODULE,
- .open = debugfs_open,
+ .open = simple_open,
.read = debugfs_read,
};