staging: ozwpan: Remove extra variable.
authorRupesh Gujare <rupesh.gujare@atmel.com>
Thu, 15 Aug 2013 11:00:22 +0000 (12:00 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Aug 2013 00:19:27 +0000 (17:19 -0700)
We should not use extra variable just to copy pointer value,
renaming parameter name serves pupose & removes extra variable.

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

index 9a374fd..2b67107 100644 (file)
@@ -720,9 +720,8 @@ err_put:
  * polled. We release the reference we hold on the PD.
  * Context: softirq
  */
-void oz_hcd_pd_departed(struct oz_port *hport)
+void oz_hcd_pd_departed(struct oz_port *port)
 {
-       struct oz_port *port = hport;
        struct oz_hcd *ozhcd;
        void *hpd;
        struct oz_endpoint *ep = NULL;