staging: ozwpan: Remove redundant initialization
authorChristoph Jaeger <email@christophjaeger.info>
Mon, 4 Aug 2014 12:54:50 +0000 (14:54 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 16 Aug 2014 19:23:12 +0000 (12:23 -0700)
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>
drivers/staging/ozwpan/ozcdev.c

index 10c0a96..f82e12c 100644 (file)
@@ -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);