OSDN Git Service

staging: ozwpan: Remove unneeded variable initializer
authorRupesh Gujare <rupesh.gujare@atmel.com>
Thu, 15 Aug 2013 11:00:21 +0000 (12:00 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Aug 2013 00:19:27 +0000 (17:19 -0700)
We are assigning value to hport before returning, there is
no need to initialize it.

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

index 4cd08da..9a374fd 100644 (file)
@@ -663,7 +663,7 @@ static inline void oz_hcd_put(struct oz_hcd *ozhcd)
 struct oz_port *oz_hcd_pd_arrived(void *hpd)
 {
        int i;
-       struct oz_port *hport = NULL;
+       struct oz_port *hport;
        struct oz_hcd *ozhcd;
        struct oz_endpoint *ep;