From: Christoph Jaeger Date: Mon, 4 Aug 2014 12:54:50 +0000 (+0200) Subject: staging: ozwpan: Remove redundant initialization X-Git-Tag: Ubuntu-snapdragon-4.4.0-1050.54~9526^2~1351 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=4abc48d140e75bb07143287f3be3fa858b8e10f5;p=mirror_ubuntu-artful-kernel.git staging: ozwpan: Remove redundant initialization Member 'ops' has already been initialized by calling cdev_init(). Signed-off-by: Christoph Jaeger Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/ozwpan/ozcdev.c b/drivers/staging/ozwpan/ozcdev.c index 10c0a96ce8bb..f82e12cd26d8 100644 --- a/drivers/staging/ozwpan/ozcdev.c +++ b/drivers/staging/ozwpan/ozcdev.c @@ -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);