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 KNF



details:   https://anonhg.NetBSD.org/src/rev/7fb953cf8fb1
branches:  nick-nhusb
changeset: 334102:7fb953cf8fb1
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sun Feb 01 06:30:29 2015 +0000

description:
KNF

diffstat:

 sys/dev/usb/ohci.c    |  10 +++++-----
 sys/dev/usb/ohcivar.h |   8 ++++----
 2 files changed, 9 insertions(+), 9 deletions(-)

diffs (73 lines):

diff -r 1eb2dabf622d -r 7fb953cf8fb1 sys/dev/usb/ohci.c
--- a/sys/dev/usb/ohci.c        Sun Feb 01 06:15:41 2015 +0000
+++ b/sys/dev/usb/ohci.c        Sun Feb 01 06:30:29 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ohci.c,v 1.254.2.15 2014/12/06 08:27:23 skrll Exp $    */
+/*     $NetBSD: ohci.c,v 1.254.2.16 2015/02/01 06:30:29 skrll Exp $    */
 
 /*
  * Copyright (c) 1998, 2004, 2005, 2012 The NetBSD Foundation, Inc.
@@ -41,7 +41,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ohci.c,v 1.254.2.15 2014/12/06 08:27:23 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ohci.c,v 1.254.2.16 2015/02/01 06:30:29 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1710,15 +1710,15 @@
                    BUS_DMASYNC_PREWRITE | BUS_DMASYNC_PREREAD);
        }
 
-       memcpy(KERNADDR(&opipe->u.ctl.reqdma, 0), req, sizeof *req);
-       usb_syncmem(&opipe->u.ctl.reqdma, 0, sizeof *req, BUS_DMASYNC_PREWRITE);
+       memcpy(KERNADDR(&opipe->u.ctl.reqdma, 0), req, sizeof(*req));
+       usb_syncmem(&opipe->u.ctl.reqdma, 0, sizeof(*req), BUS_DMASYNC_PREWRITE);
 
        setup->td.td_flags = HTOO32(OHCI_TD_SETUP | OHCI_TD_NOCC |
                                     OHCI_TD_TOGGLE_0 | OHCI_TD_NOINTR);
        setup->td.td_cbp = HTOO32(DMAADDR(&opipe->u.ctl.reqdma, 0));
        setup->nexttd = next;
        setup->td.td_nexttd = HTOO32(next->physaddr);
-       setup->td.td_be = HTOO32(O32TOH(setup->td.td_cbp) + sizeof *req - 1);
+       setup->td.td_be = HTOO32(O32TOH(setup->td.td_cbp) + sizeof(*req) - 1);
        setup->len = 0;
        setup->xfer = xfer;
        setup->flags = 0;
diff -r 1eb2dabf622d -r 7fb953cf8fb1 sys/dev/usb/ohcivar.h
--- a/sys/dev/usb/ohcivar.h     Sun Feb 01 06:15:41 2015 +0000
+++ b/sys/dev/usb/ohcivar.h     Sun Feb 01 06:30:29 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ohcivar.h,v 1.55.6.4 2014/12/05 13:23:38 skrll Exp $   */
+/*     $NetBSD: ohcivar.h,v 1.55.6.5 2015/02/01 06:30:29 skrll Exp $   */
 
 /*
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -42,7 +42,7 @@
        usb_dma_t dma;
        int offs;
 } ohci_soft_ed_t;
-#define OHCI_SED_SIZE ((sizeof (struct ohci_soft_ed) + OHCI_ED_ALIGN - 1) / OHCI_ED_ALIGN * OHCI_ED_ALIGN)
+#define OHCI_SED_SIZE ((sizeof(struct ohci_soft_ed) + OHCI_ED_ALIGN - 1) / OHCI_ED_ALIGN * OHCI_ED_ALIGN)
 #define OHCI_SED_CHUNK 128
 
 
@@ -60,7 +60,7 @@
 #define OHCI_CALL_DONE 0x0001
 #define OHCI_ADD_LEN   0x0002
 } ohci_soft_td_t;
-#define OHCI_STD_SIZE ((sizeof (struct ohci_soft_td) + OHCI_TD_ALIGN - 1) / OHCI_TD_ALIGN * OHCI_TD_ALIGN)
+#define OHCI_STD_SIZE ((sizeof(struct ohci_soft_td) + OHCI_TD_ALIGN - 1) / OHCI_TD_ALIGN * OHCI_TD_ALIGN)
 #define OHCI_STD_CHUNK 128
 
 
@@ -76,7 +76,7 @@
        uint16_t flags;
        char isdone;    /* used only when DIAGNOSTIC is defined */
 } ohci_soft_itd_t;
-#define OHCI_SITD_SIZE ((sizeof (struct ohci_soft_itd) + OHCI_ITD_ALIGN - 1) / OHCI_ITD_ALIGN * OHCI_ITD_ALIGN)
+#define OHCI_SITD_SIZE ((sizeof(struct ohci_soft_itd) + OHCI_ITD_ALIGN - 1) / OHCI_ITD_ALIGN * OHCI_ITD_ALIGN)
 #define OHCI_SITD_CHUNK 64
 
 



Home | Main Index | Thread Index | Old Index