staging: ozwpan: Remove memset
authorRupesh Gujare <rupesh.gujare@atmel.com>
Fri, 23 Aug 2013 15:11:00 +0000 (16:11 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Aug 2013 17:12:32 +0000 (10:12 -0700)
As we are initialising structure, we do not require
memset().

Signed-off-by: Rupesh Gujare <rupesh.gujare@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ozwpan/ozpd.c

index 06004c8..5d24af3 100644 (file)
@@ -268,7 +268,6 @@ void oz_pd_destroy(struct oz_pd *pd)
        if (hrtimer_active(&pd->heartbeat))
                hrtimer_cancel(&pd->heartbeat);
 
-       memset(&pd->workitem, 0, sizeof(pd->workitem));
        INIT_WORK(&pd->workitem, oz_pd_free);
        ret = schedule_work(&pd->workitem);