mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-26 19:19:32 +03:00
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.
This commit is contained in:
parent
03318641af
commit
98e2afd1c5
@ -95,7 +95,6 @@ __ddi_create_minor_node(dev_info_t *di, char *name, int spec_type,
|
|||||||
int flags, struct module *mod)
|
int flags, struct module *mod)
|
||||||
{
|
{
|
||||||
struct cdev *cdev;
|
struct cdev *cdev;
|
||||||
struct dev_ops *dev_ops;
|
|
||||||
struct cb_ops *cb_ops;
|
struct cb_ops *cb_ops;
|
||||||
struct file_operations *fops;
|
struct file_operations *fops;
|
||||||
int rc;
|
int rc;
|
||||||
@ -118,8 +117,6 @@ __ddi_create_minor_node(dev_info_t *di, char *name, int spec_type,
|
|||||||
cdev->ops = fops;
|
cdev->ops = fops;
|
||||||
|
|
||||||
mutex_enter(&di->di_lock);
|
mutex_enter(&di->di_lock);
|
||||||
dev_ops = di->di_ops;
|
|
||||||
ASSERT(dev_ops);
|
|
||||||
cb_ops = di->di_ops->devo_cb_ops;
|
cb_ops = di->di_ops->devo_cb_ops;
|
||||||
ASSERT(cb_ops);
|
ASSERT(cb_ops);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user