aboutsummaryrefslogtreecommitdiffstats
path: root/module/spl
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2011-04-19 09:45:36 -0700
committerBrian Behlendorf <[email protected]>2011-04-19 09:45:36 -0700
commit98e2afd1c5fc491413a80c7ef005127ac3add5d9 (patch)
tree2f3434c59a127436455e23fe1d706238b2d3bff8 /module/spl
parent03318641afc3e2d6dc18614aaa75d6a0125cb933 (diff)
Fix unused variable
Flagged by the default -Wunused-but-set-variable gcc option when running under Fedora 15. Since it's correct this variable is entirely unused this commit removes it.
Diffstat (limited to 'module/spl')
-rw-r--r--module/spl/spl-module.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/module/spl/spl-module.c b/module/spl/spl-module.c
index 3b5161b6d..2c665b5d4 100644
--- a/module/spl/spl-module.c
+++ b/module/spl/spl-module.c
@@ -95,7 +95,6 @@ __ddi_create_minor_node(dev_info_t *di, char *name, int spec_type,
int flags, struct module *mod)
{
struct cdev *cdev;
- struct dev_ops *dev_ops;
struct cb_ops *cb_ops;
struct file_operations *fops;
int rc;
@@ -118,8 +117,6 @@ __ddi_create_minor_node(dev_info_t *di, char *name, int spec_type,
cdev->ops = fops;
mutex_enter(&di->di_lock);
- dev_ops = di->di_ops;
- ASSERT(dev_ops);
cb_ops = di->di_ops->devo_cb_ops;
ASSERT(cb_ops);