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. Remove argument name from function dec...



details:   https://anonhg.NetBSD.org/src/rev/c3cc7672dc27
branches:  nick-nhusb
changeset: 804221:c3cc7672dc27
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sat Dec 06 08:27:23 2014 +0000

description:
KNF. Remove argument name from function declarations.

No functional change.

diffstat:

 sys/dev/usb/ehci.c          |  36 +++++++++++++-------------
 sys/dev/usb/if_atu.c        |  54 ++++++++++++++++++++--------------------
 sys/dev/usb/if_aue.c        |   6 ++--
 sys/dev/usb/if_axe.c        |  10 +++---
 sys/dev/usb/if_axen.c       |  10 +++---
 sys/dev/usb/if_rum.c        |   6 ++--
 sys/dev/usb/if_upgt.c       |   6 ++--
 sys/dev/usb/if_urtw.c       |   6 ++--
 sys/dev/usb/ohci.c          |  16 ++++++------
 sys/dev/usb/ubsavar.h       |   4 +-
 sys/dev/usb/ucomvar.h       |  35 ++++++++++++++------------
 sys/dev/usb/ucycom.c        |   6 ++--
 sys/dev/usb/udsbr.c         |  16 ++++++------
 sys/dev/usb/uftdi.c         |  16 ++++++------
 sys/dev/usb/ugen.c          |  28 ++++++++++----------
 sys/dev/usb/uhci.c          |  30 +++++++++++-----------
 sys/dev/usb/uhid.c          |  10 +++---
 sys/dev/usb/uhub.c          |   8 +++---
 sys/dev/usb/uipaq.c         |  10 +++---
 sys/dev/usb/uirda.c         |  22 ++++++++--------
 sys/dev/usb/uirdavar.h      |  23 ++++++++---------
 sys/dev/usb/ukbd.c          |  12 ++++----
 sys/dev/usb/ulpt.c          |  12 ++++----
 sys/dev/usb/umass.c         |  26 ++++++++++----------
 sys/dev/usb/umass_isdata.h  |   4 +-
 sys/dev/usb/umass_scsipi.c  |  20 +++++++-------
 sys/dev/usb/umass_scsipi.h  |   6 ++--
 sys/dev/usb/umcs.c          |  30 +++++++++++-----------
 sys/dev/usb/umct.c          |   6 ++--
 sys/dev/usb/umodem_common.c |  12 ++++----
 sys/dev/usb/umodemvar.h     |   8 +++---
 sys/dev/usb/ums.c           |   8 +++---
 sys/dev/usb/uplcom.c        |  10 +++---
 sys/dev/usb/usb_mem.h       |   4 +-
 sys/dev/usb/usbdi_util.h    |  58 ++++++++++++++++++++++----------------------
 sys/dev/usb/usbdivar.h      |  28 ++++++++++----------
 sys/dev/usb/usscanner.c     |  16 ++++++------
 sys/dev/usb/ustir.c         |  26 ++++++++++----------
 sys/dev/usb/uts.c           |   6 ++--
 sys/dev/usb/uvideo.c        |  16 ++++++------
 40 files changed, 334 insertions(+), 332 deletions(-)

diffs (truncated from 1610 to 300 lines):

diff -r 00e5e3ff32ca -r c3cc7672dc27 sys/dev/usb/ehci.c
--- a/sys/dev/usb/ehci.c        Fri Dec 05 14:55:14 2014 +0000
+++ b/sys/dev/usb/ehci.c        Sat Dec 06 08:27:23 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ehci.c,v 1.234.2.15 2014/12/05 13:23:38 skrll Exp $ */
+/*     $NetBSD: ehci.c,v 1.234.2.16 2014/12/06 08:27:23 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.15 2014/12/05 13:23:38 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ehci.c,v 1.234.2.16 2014/12/06 08:27:23 skrll Exp $");
 
 #include "ohci.h"
 #include "uhci.h"
@@ -212,8 +212,8 @@
 Static void            ehci_device_fs_isoc_close(usbd_pipe_handle);
 Static void            ehci_device_fs_isoc_done(usbd_xfer_handle);
 
-Static void            ehci_device_clear_toggle(usbd_pipe_handle pipe);
-Static void            ehci_noop(usbd_pipe_handle pipe);
+Static void            ehci_device_clear_toggle(usbd_pipe_handle);
+Static void            ehci_noop(usbd_pipe_handle);
 
 Static void            ehci_disown(ehci_softc_t *, int, int);
 
@@ -228,21 +228,21 @@
 Static void            ehci_free_sqtd_chain(ehci_softc_t *, ehci_soft_qtd_t *,
                                            ehci_soft_qtd_t *);
 
-Static ehci_soft_itd_t *ehci_alloc_itd(ehci_softc_t *sc);
-Static ehci_soft_sitd_t *ehci_alloc_sitd(ehci_softc_t *sc);
-Static void            ehci_free_itd(ehci_softc_t *sc, ehci_soft_itd_t *itd);
-Static void            ehci_free_sitd(ehci_softc_t *sc, ehci_soft_sitd_t *);
-Static void            ehci_rem_free_itd_chain(ehci_softc_t *sc,
-                                               struct ehci_xfer *exfer);
-Static void            ehci_rem_free_sitd_chain(ehci_softc_t *sc,
-                                                struct ehci_xfer *exfer);
-Static void            ehci_abort_isoc_xfer(usbd_xfer_handle xfer,
-                                               usbd_status status);
-
-Static usbd_status     ehci_device_request(usbd_xfer_handle xfer);
+Static ehci_soft_itd_t *ehci_alloc_itd(ehci_softc_t *);
+Static ehci_soft_sitd_t *ehci_alloc_sitd(ehci_softc_t *);
+Static void            ehci_free_itd(ehci_softc_t *, ehci_soft_itd_t *);
+Static void            ehci_free_sitd(ehci_softc_t *, ehci_soft_sitd_t *);
+Static void            ehci_rem_free_itd_chain(ehci_softc_t *,
+                                               struct ehci_xfer *);
+Static void            ehci_rem_free_sitd_chain(ehci_softc_t *,
+                                                struct ehci_xfer *);
+Static void            ehci_abort_isoc_xfer(usbd_xfer_handle,
+                                               usbd_status);
+
+Static usbd_status     ehci_device_request(usbd_xfer_handle);
 
 Static usbd_status     ehci_device_setintr(ehci_softc_t *, ehci_soft_qh_t *,
-                           int ival);
+                           int);
 
 Static void            ehci_add_qh(ehci_softc_t *, ehci_soft_qh_t *,
                                    ehci_soft_qh_t *);
@@ -265,7 +265,7 @@
 Static void            ehci_dump_sqtd(ehci_soft_qtd_t *);
 Static void            ehci_dump_qtd(ehci_qtd_t *);
 Static void            ehci_dump_sqh(ehci_soft_qh_t *);
-Static void            ehci_dump_sitd(struct ehci_soft_itd *itd);
+Static void            ehci_dump_sitd(struct ehci_soft_itd *);
 Static void            ehci_dump_itd(struct ehci_soft_itd *);
 Static void            ehci_dump_exfer(struct ehci_xfer *);
 #endif
diff -r 00e5e3ff32ca -r c3cc7672dc27 sys/dev/usb/if_atu.c
--- a/sys/dev/usb/if_atu.c      Fri Dec 05 14:55:14 2014 +0000
+++ b/sys/dev/usb/if_atu.c      Sat Dec 06 08:27:23 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_atu.c,v 1.50.2.5 2014/12/05 09:37:49 skrll Exp $ */
+/*     $NetBSD: if_atu.c,v 1.50.2.6 2014/12/06 08:27:23 skrll Exp $ */
 /*     $OpenBSD: if_atu.c,v 1.48 2004/12/30 01:53:21 dlg Exp $ */
 /*
  * Copyright (c) 2003, 2004
@@ -48,7 +48,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_atu.c,v 1.50.2.5 2014/12/05 09:37:49 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_atu.c,v 1.50.2.6 2014/12/06 08:27:23 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/sockio.h>
@@ -236,39 +236,39 @@
 int    atu_init(struct ifnet *);
 void   atu_stop(struct ifnet *, int);
 void   atu_watchdog(struct ifnet *);
-usbd_status atu_usb_request(struct atu_softc *sc, uint8_t type,
-           uint8_t request, uint16_t value, uint16_t index,
-           uint16_t length, uint8_t *data);
-int    atu_send_command(struct atu_softc *sc, uint8_t *command, int size);
-int    atu_get_cmd_status(struct atu_softc *sc, uint8_t cmd,
-           uint8_t *status);
-int    atu_wait_completion(struct atu_softc *sc, uint8_t cmd,
-           uint8_t *status);
-int    atu_send_mib(struct atu_softc *sc, uint8_t type,
-           uint8_t size, uint8_t index, void *data);
-int    atu_get_mib(struct atu_softc *sc, uint8_t type,
-           uint8_t size, uint8_t index, uint8_t *buf);
+usbd_status atu_usb_request(struct atu_softc *, uint8_t,
+           uint8_t, uint16_t, uint16_t,
+           uint16_t, uint8_t *);
+int    atu_send_command(struct atu_softc *, uint8_t *, int);
+int    atu_get_cmd_status(struct atu_softc *, uint8_t,
+           uint8_t *);
+int    atu_wait_completion(struct atu_softc *, uint8_t,
+           uint8_t *);
+int    atu_send_mib(struct atu_softc *, uint8_t,
+           uint8_t, uint8_t, void *);
+int    atu_get_mib(struct atu_softc *, uint8_t,
+           uint8_t, uint8_t, uint8_t *);
 #if 0
-int    atu_start_ibss(struct atu_softc *sc);
+int    atu_start_ibss(struct atu_softc *);
 #endif
-int    atu_start_scan(struct atu_softc *sc);
-int    atu_switch_radio(struct atu_softc *sc, int state);
-int    atu_initial_config(struct atu_softc *sc);
-int    atu_join(struct atu_softc *sc, struct ieee80211_node *node);
-int8_t atu_get_dfu_state(struct atu_softc *sc);
-uint8_t atu_get_opmode(struct atu_softc *sc, uint8_t *mode);
+int    atu_start_scan(struct atu_softc *);
+int    atu_switch_radio(struct atu_softc *, int);
+int    atu_initial_config(struct atu_softc *);
+int    atu_join(struct atu_softc *, struct ieee80211_node *);
+int8_t atu_get_dfu_state(struct atu_softc *);
+uint8_t atu_get_opmode(struct atu_softc *, uint8_t *);
 void   atu_internal_firmware(device_t);
 void   atu_external_firmware(device_t);
-int    atu_get_card_config(struct atu_softc *sc);
-int    atu_media_change(struct ifnet *ifp);
-void   atu_media_status(struct ifnet *ifp, struct ifmediareq *req);
+int    atu_get_card_config(struct atu_softc *);
+int    atu_media_change(struct ifnet *);
+void   atu_media_status(struct ifnet *, struct ifmediareq *);
 int    atu_tx_list_init(struct atu_softc *);
 int    atu_rx_list_init(struct atu_softc *);
-void   atu_xfer_list_free(struct atu_softc *sc, struct atu_chain *ch,
-           int listlen);
+void   atu_xfer_list_free(struct atu_softc *, struct atu_chain *,
+           int);
 
 #ifdef ATU_DEBUG
-void   atu_debug_print(struct atu_softc *sc);
+void   atu_debug_print(struct atu_softc *);
 #endif
 
 void atu_task(void *);
diff -r 00e5e3ff32ca -r c3cc7672dc27 sys/dev/usb/if_aue.c
--- a/sys/dev/usb/if_aue.c      Fri Dec 05 14:55:14 2014 +0000
+++ b/sys/dev/usb/if_aue.c      Sat Dec 06 08:27:23 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_aue.c,v 1.132.4.4 2014/12/05 09:37:49 skrll Exp $   */
+/*     $NetBSD: if_aue.c,v 1.132.4.5 2014/12/06 08:27:23 skrll Exp $   */
 
 /*
  * Copyright (c) 1997, 1998, 1999, 2000
@@ -78,7 +78,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_aue.c,v 1.132.4.4 2014/12/05 09:37:49 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_aue.c,v 1.132.4.5 2014/12/06 08:27:23 skrll Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -218,7 +218,7 @@
 
 Static void aue_multithread(void *);
 
-Static void aue_reset_pegasus_II(struct aue_softc *sc);
+Static void aue_reset_pegasus_II(struct aue_softc *);
 Static int aue_tx_list_init(struct aue_softc *);
 Static int aue_rx_list_init(struct aue_softc *);
 Static int aue_newbuf(struct aue_softc *, struct aue_chain *, struct mbuf *);
diff -r 00e5e3ff32ca -r c3cc7672dc27 sys/dev/usb/if_axe.c
--- a/sys/dev/usb/if_axe.c      Fri Dec 05 14:55:14 2014 +0000
+++ b/sys/dev/usb/if_axe.c      Sat Dec 06 08:27:23 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_axe.c,v 1.67.4.2 2014/12/03 12:52:07 skrll Exp $    */
+/*     $NetBSD: if_axe.c,v 1.67.4.3 2014/12/06 08:27:23 skrll Exp $    */
 /*     $OpenBSD: if_axe.c,v 1.96 2010/01/09 05:33:08 jsg Exp $ */
 
 /*
@@ -89,7 +89,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_axe.c,v 1.67.4.2 2014/12/03 12:52:07 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_axe.c,v 1.67.4.3 2014/12/06 08:27:23 skrll Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -201,13 +201,13 @@
 static void    axe_miibus_writereg(device_t, int, int, int);
 static void    axe_miibus_statchg(struct ifnet *);
 static int     axe_cmd(struct axe_softc *, int, int, int, void *);
-static void    axe_reset(struct axe_softc *sc);
+static void    axe_reset(struct axe_softc *);
 static int     axe_ifmedia_upd(struct ifnet *);
 static void    axe_ifmedia_sts(struct ifnet *, struct ifmediareq *);
 
 static void    axe_setmulti(struct axe_softc *);
-static void    axe_lock_mii(struct axe_softc *sc);
-static void    axe_unlock_mii(struct axe_softc *sc);
+static void    axe_lock_mii(struct axe_softc *);
+static void    axe_unlock_mii(struct axe_softc *);
 
 static void    axe_ax88178_init(struct axe_softc *);
 static void    axe_ax88772_init(struct axe_softc *);
diff -r 00e5e3ff32ca -r c3cc7672dc27 sys/dev/usb/if_axen.c
--- a/sys/dev/usb/if_axen.c     Fri Dec 05 14:55:14 2014 +0000
+++ b/sys/dev/usb/if_axen.c     Sat Dec 06 08:27:23 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_axen.c,v 1.3.6.2 2014/12/03 12:52:07 skrll Exp $    */
+/*     $NetBSD: if_axen.c,v 1.3.6.3 2014/12/06 08:27:23 skrll Exp $    */
 /*     $OpenBSD: if_axen.c,v 1.3 2013/10/21 10:10:22 yuo Exp $ */
 
 /*
@@ -23,7 +23,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_axen.c,v 1.3.6.2 2014/12/03 12:52:07 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_axen.c,v 1.3.6.3 2014/12/06 08:27:23 skrll Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -110,14 +110,14 @@
 static int     axen_cmd(struct axen_softc *, int, int, int, void *);
 static int     axen_ifmedia_upd(struct ifnet *);
 static void    axen_ifmedia_sts(struct ifnet *, struct ifmediareq *);
-static void    axen_reset(struct axen_softc *sc);
+static void    axen_reset(struct axen_softc *);
 #if 0
 static int     axen_ax88179_eeprom(struct axen_softc *, void *);
 #endif
 
 static void    axen_iff(struct axen_softc *);
-static void    axen_lock_mii(struct axen_softc *sc);
-static void    axen_unlock_mii(struct axen_softc *sc);
+static void    axen_lock_mii(struct axen_softc *);
+static void    axen_unlock_mii(struct axen_softc *);
 
 static void    axen_ax88179_init(struct axen_softc *);
 
diff -r 00e5e3ff32ca -r c3cc7672dc27 sys/dev/usb/if_rum.c
--- a/sys/dev/usb/if_rum.c      Fri Dec 05 14:55:14 2014 +0000
+++ b/sys/dev/usb/if_rum.c      Sat Dec 06 08:27:23 2014 +0000
@@ -1,5 +1,5 @@
 /*     $OpenBSD: if_rum.c,v 1.40 2006/09/18 16:20:20 damien Exp $      */
-/*     $NetBSD: if_rum.c,v 1.48.6.2 2014/12/03 22:33:56 skrll Exp $    */
+/*     $NetBSD: if_rum.c,v 1.48.6.3 2014/12/06 08:27:23 skrll Exp $    */
 
 /*-
  * Copyright (c) 2005-2007 Damien Bergamini <damien.bergamini%free.fr@localhost>
@@ -24,7 +24,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_rum.c,v 1.48.6.2 2014/12/03 22:33:56 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_rum.c,v 1.48.6.3 2014/12/06 08:27:23 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/sockio.h>
@@ -200,7 +200,7 @@
                            struct ieee80211_node *);
 static void            rum_amrr_timeout(void *);
 static void            rum_amrr_update(usbd_xfer_handle, usbd_private_handle,
-                           usbd_status status);
+                           usbd_status);
 
 /*
  * Supported rates for 802.11a/b/g modes (in 500Kbps unit).
diff -r 00e5e3ff32ca -r c3cc7672dc27 sys/dev/usb/if_upgt.c
--- a/sys/dev/usb/if_upgt.c     Fri Dec 05 14:55:14 2014 +0000
+++ b/sys/dev/usb/if_upgt.c     Sat Dec 06 08:27:23 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_upgt.c,v 1.12.4.2 2014/12/02 09:00:33 skrll Exp $   */
+/*     $NetBSD: if_upgt.c,v 1.12.4.3 2014/12/06 08:27:23 skrll Exp $   */
 /*     $OpenBSD: if_upgt.c,v 1.49 2010/04/20 22:05:43 tedu Exp $ */
 
 /*
@@ -18,7 +18,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_upgt.c,v 1.12.4.2 2014/12/02 09:00:33 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_upgt.c,v 1.12.4.3 2014/12/06 08:27:23 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/callout.h>



Home | Main Index | Thread Index | Old Index