Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/nick-nhusb]: src/sys/dev/usb Initialise some variables in their declarat...



details:   https://anonhg.NetBSD.org/src/rev/c273b99be3b1
branches:  nick-nhusb
changeset: 334290:c273b99be3b1
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sun Oct 25 09:28:41 2015 +0000

description:
Initialise some variables in their declarations.

diffstat:

 sys/dev/usb/ehci.c |  16 ++++++----------
 1 files changed, 6 insertions(+), 10 deletions(-)

diffs (44 lines):

diff -r 6a5e5d24818c -r c273b99be3b1 sys/dev/usb/ehci.c
--- a/sys/dev/usb/ehci.c        Sat Oct 24 15:33:59 2015 +0000
+++ b/sys/dev/usb/ehci.c        Sun Oct 25 09:28:41 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ehci.c,v 1.234.2.62 2015/10/24 15:33:59 skrll Exp $ */
+/*     $NetBSD: ehci.c,v 1.234.2.63 2015/10/25 09:28:41 skrll Exp $ */
 
 /*
  * Copyright (c) 2004-2012 The NetBSD Foundation, Inc.
@@ -53,7 +53,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ehci.c,v 1.234.2.62 2015/10/24 15:33:59 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ehci.c,v 1.234.2.63 2015/10/25 09:28:41 skrll Exp $");
 
 #include "ohci.h"
 #include "uhci.h"
@@ -4066,10 +4066,10 @@
 Static usbd_status
 ehci_device_fs_isoc_start(struct usbd_xfer *xfer)
 {
-       struct ehci_pipe *epipe;
-       struct usbd_device *dev;
-       ehci_softc_t *sc;
-       struct ehci_xfer *exfer;
+       struct ehci_pipe *epipe = EHCI_XFER2EPIPE(xfer);
+       struct usbd_device *dev = xfer->ux_pipe->up_dev;
+       ehci_softc_t *sc = EHCI_XFER2SC(xfer);
+       struct ehci_xfer *exfer = EHCI_XFER2EXFER(xfer);
        ehci_soft_sitd_t *sitd, *prev, *start, *stop;
        usb_dma_t *dma_buf;
        int i, j, k, frames;
@@ -4083,10 +4083,6 @@
        prev = NULL;
        sitd = NULL;
        total_length = 0;
-       exfer = EHCI_XFER2EXFER(xfer);
-       sc = EHCI_XFER2SC(xfer);
-       dev = xfer->ux_pipe->up_dev;
-       epipe = EHCI_XFER2EPIPE(xfer);
 
        /*
         * To allow continuous transfers, above we start all transfers



Home | Main Index | Thread Index | Old Index