mirror of
https://github.com/torvalds/linux.git
synced 2024-12-18 00:53:40 +00:00
staging: ozwpan: Remove redundant initialization
Member 'ops' has already been initialized by calling cdev_init(). Signed-off-by: Christoph Jaeger <email@christophjaeger.info> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
3f8fd6d85f
commit
4abc48d140
@ -360,7 +360,6 @@ int oz_cdev_register(void)
|
||||
MAJOR(g_cdev.devnum), MINOR(g_cdev.devnum));
|
||||
cdev_init(&g_cdev.cdev, &oz_fops);
|
||||
g_cdev.cdev.owner = THIS_MODULE;
|
||||
g_cdev.cdev.ops = &oz_fops;
|
||||
spin_lock_init(&g_cdev.lock);
|
||||
init_waitqueue_head(&g_cdev.rdq);
|
||||
err = cdev_add(&g_cdev.cdev, g_cdev.devnum, 1);
|
||||
|
Loading…
Reference in New Issue
Block a user