diff options
author | Christoph Jaeger <email@christophjaeger.info> | 2014-08-04 14:54:50 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-08-16 12:23:12 -0700 |
commit | 4abc48d140e75bb07143287f3be3fa858b8e10f5 (patch) | |
tree | db9f22ca7de8c6e0eeff16875696c8b7ad3a5494 | |
parent | 3f8fd6d85fa9b826282043b9a67604eff8725033 (diff) | |
download | blackbird-op-linux-4abc48d140e75bb07143287f3be3fa858b8e10f5.tar.gz blackbird-op-linux-4abc48d140e75bb07143287f3be3fa858b8e10f5.zip |
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>
-rw-r--r-- | drivers/staging/ozwpan/ozcdev.c | 1 |
1 files changed, 0 insertions, 1 deletions
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); |