Date: Wed, 27 Dec 2017 03:23:22 +0000 (UTC) From: Eitan Adler <eadler@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r327231 - in head/sys: amd64/amd64 dev/ath dev/bhnd/nvram dev/cadence dev/de dev/drm dev/e1000 dev/isci/scil dev/iwm dev/mvs dev/mwl dev/sfxge/common dev/sio dev/sound/isa dev/syscons f... Message-ID: <201712270323.vBR3NMF1058306@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: eadler Date: Wed Dec 27 03:23:21 2017 New Revision: 327231 URL: https://svnweb.freebsd.org/changeset/base/327231 Log: kernel: Fix several typos and minor errors - duplicate words - typos - references to old versions of FreeBSD Reviewed by: imp, benno Modified: head/sys/amd64/amd64/support.S head/sys/dev/ath/if_ath.c head/sys/dev/bhnd/nvram/bhnd_nvram_store_subr.c head/sys/dev/cadence/if_cgem.c head/sys/dev/de/if_de.c head/sys/dev/drm/mga_state.c head/sys/dev/e1000/e1000_82543.c head/sys/dev/isci/scil/scic_sds_remote_node_context.c head/sys/dev/isci/scil/scif_sas_controller.c head/sys/dev/iwm/if_iwmreg.h head/sys/dev/mvs/mvs_pci.c head/sys/dev/mwl/if_mwl.c head/sys/dev/sfxge/common/siena_nvram.c head/sys/dev/sio/sio.c head/sys/dev/sound/isa/mss.h head/sys/dev/syscons/scvgarndr.c head/sys/fs/nfsclient/nfs_clrpcops.c head/sys/i386/i386/support.s head/sys/kern/vfs_subr.c head/sys/mips/conf/BERI_SOCKIT head/sys/net/altq/altq_hfsc.h head/sys/net/bpf.c head/sys/net80211/ieee80211_ht.c head/sys/net80211/ieee80211_scan_sta.c head/sys/powerpc/booke/locore.S head/sys/sparc64/pci/sbbc.c head/sys/ufs/ffs/ffs_softdep.c Modified: head/sys/amd64/amd64/support.S ============================================================================== --- head/sys/amd64/amd64/support.S Wed Dec 27 03:23:01 2017 (r327230) +++ head/sys/amd64/amd64/support.S Wed Dec 27 03:23:21 2017 (r327231) @@ -596,7 +596,7 @@ END(subyte) * copyinstr(from, to, maxlen, int *lencopied) - MP SAFE * %rdi, %rsi, %rdx, %rcx * - * copy a string from from to to, stop when a 0 character is reached. + * copy a string from 'from' to 'to', stop when a 0 character is reached. * return ENAMETOOLONG if string is longer than maxlen, and * EFAULT on protection violations. If lencopied is non-zero, * return the actual length in *lencopied. Modified: head/sys/dev/ath/if_ath.c ============================================================================== --- head/sys/dev/ath/if_ath.c Wed Dec 27 03:23:01 2017 (r327230) +++ head/sys/dev/ath/if_ath.c Wed Dec 27 03:23:21 2017 (r327231) @@ -1081,7 +1081,7 @@ ath_attach(u_int16_t devid, struct ath_softc *sc) sc->sc_txq_node_psq_maxdepth = 16; /* - * Default the maximum queue to to 1/4'th the TX buffers, or + * Default the maximum queue to 1/4'th the TX buffers, or * 64, whichever is smaller. */ sc->sc_txq_node_maxdepth = MIN(64, ath_txbuf / 4); Modified: head/sys/dev/bhnd/nvram/bhnd_nvram_store_subr.c ============================================================================== --- head/sys/dev/bhnd/nvram/bhnd_nvram_store_subr.c Wed Dec 27 03:23:01 2017 (r327230) +++ head/sys/dev/bhnd/nvram/bhnd_nvram_store_subr.c Wed Dec 27 03:23:21 2017 (r327231) @@ -748,7 +748,7 @@ bhnd_nvstore_var_register_path(struct bhnd_nvram_store } /** - * Resolve the device path entry referenced referenced by @p info. + * Resolve the device path entry referenced by @p info. * * @param sc The NVRAM store to be updated. * @param info Variable name information descriptor containing Modified: head/sys/dev/cadence/if_cgem.c ============================================================================== --- head/sys/dev/cadence/if_cgem.c Wed Dec 27 03:23:01 2017 (r327230) +++ head/sys/dev/cadence/if_cgem.c Wed Dec 27 03:23:21 2017 (r327231) @@ -811,7 +811,7 @@ cgem_start_locked(if_t ifp) WR4(sc, CGEM_NET_CTRL, sc->net_ctl_shadow | CGEM_NET_CTRL_START_TX); - /* If there is a BPF listener, bounce a copy to to him. */ + /* If there is a BPF listener, bounce a copy to him. */ ETHER_BPF_MTAP(ifp, m); } } Modified: head/sys/dev/de/if_de.c ============================================================================== --- head/sys/dev/de/if_de.c Wed Dec 27 03:23:01 2017 (r327230) +++ head/sys/dev/de/if_de.c Wed Dec 27 03:23:21 2017 (r327231) @@ -3920,7 +3920,7 @@ tulip_txput(tulip_softc_t * const sc, struct mbuf *m) * a bit reminiscent of going on the Ark two by two * since each descriptor for the TULIP can describe * two buffers. So we advance through packet filling - * each of the two entries at a time to to fill each + * each of the two entries at a time to fill each * descriptor. Clear the first and last segment bits * in each descriptor (actually just clear everything * but the end-of-ring or chain bits) to make sure Modified: head/sys/dev/drm/mga_state.c ============================================================================== --- head/sys/dev/drm/mga_state.c Wed Dec 27 03:23:01 2017 (r327230) +++ head/sys/dev/drm/mga_state.c Wed Dec 27 03:23:21 2017 (r327231) @@ -258,7 +258,7 @@ static __inline__ void mga_g200_emit_pipe(drm_mga_priv MGA_WR42, 0x0000ffff, MGA_WR60, 0x0000ffff); - /* Padding required to to hardware bug. + /* Padding required due to hardware bug. */ DMA_BLOCK(MGA_DMAPAD, 0xffffffff, MGA_DMAPAD, 0xffffffff, @@ -340,7 +340,7 @@ static __inline__ void mga_g400_emit_pipe(drm_mga_priv MGA_WR52, MGA_G400_WR_MAGIC, /* tex1 width */ MGA_WR60, MGA_G400_WR_MAGIC); /* tex1 height */ - /* Padding required to to hardware bug */ + /* Padding required due to hardware bug */ DMA_BLOCK(MGA_DMAPAD, 0xffffffff, MGA_DMAPAD, 0xffffffff, MGA_DMAPAD, 0xffffffff, Modified: head/sys/dev/e1000/e1000_82543.c ============================================================================== --- head/sys/dev/e1000/e1000_82543.c Wed Dec 27 03:23:01 2017 (r327230) +++ head/sys/dev/e1000/e1000_82543.c Wed Dec 27 03:23:21 2017 (r327231) @@ -1310,7 +1310,7 @@ static s32 e1000_check_for_copper_link_82543(struct e1 * turn it on. For compatibility with a TBI link * partner, we will store bad packets. Some * frames have an additional byte on the end and - * will look like CRC errors to to the hardware. + * will look like CRC errors to the hardware. */ if (!e1000_tbi_sbp_enabled_82543(hw)) { e1000_set_tbi_sbp_82543(hw, TRUE); Modified: head/sys/dev/isci/scil/scic_sds_remote_node_context.c ============================================================================== --- head/sys/dev/isci/scil/scic_sds_remote_node_context.c Wed Dec 27 03:23:01 2017 (r327230) +++ head/sys/dev/isci/scil/scic_sds_remote_node_context.c Wed Dec 27 03:23:21 2017 (r327231) @@ -899,7 +899,7 @@ SCI_STATUS scic_sds_remote_node_context_tx_suspended_s * * @param[in] this_rnc The remote node context which is to receive the task * request. -* @param[in] the_request The task request to be transmitted to to the remote +* @param[in] the_request The task request to be transmitted to the remote * target device. * * @return SCI_STATUS Modified: head/sys/dev/isci/scil/scif_sas_controller.c ============================================================================== --- head/sys/dev/isci/scil/scif_sas_controller.c Wed Dec 27 03:23:01 2017 (r327230) +++ head/sys/dev/isci/scil/scif_sas_controller.c Wed Dec 27 03:23:21 2017 (r327231) @@ -913,7 +913,7 @@ void scif_sas_controller_free_internal_request( fw_controller, fw_internal_request_buffer )); - //return the memory to to pool. + //return the memory to the pool. if( !sci_pool_full(fw_controller->internal_request_memory_pool) ) { sci_pool_put( Modified: head/sys/dev/iwm/if_iwmreg.h ============================================================================== --- head/sys/dev/iwm/if_iwmreg.h Wed Dec 27 03:23:01 2017 (r327230) +++ head/sys/dev/iwm/if_iwmreg.h Wed Dec 27 03:23:21 2017 (r327231) @@ -3734,7 +3734,7 @@ struct iwm_uapsd_misbehaving_ap_notif { * beacon filtering; beacons will not be forced to be sent to driver * regardless of whether its temperature has been changed. * @bf_enable_beacon_filter: 1, beacon filtering is enabled; 0, disabled. - * @bf_filter_escape_timer: Send beacons to to driver if no beacons were passed + * @bf_filter_escape_timer: Send beacons to the driver if no beacons were passed * for a specific period of time. Units: Beacons. * @ba_escape_timer: Fully receive and parse beacon if no beacons were passed * for a longer period of time then this escape-timeout. Units: Beacons. Modified: head/sys/dev/mvs/mvs_pci.c ============================================================================== --- head/sys/dev/mvs/mvs_pci.c Wed Dec 27 03:23:01 2017 (r327230) +++ head/sys/dev/mvs/mvs_pci.c Wed Dec 27 03:23:21 2017 (r327231) @@ -338,7 +338,7 @@ mvs_intr(void *data) ic = ATA_INL(ctlr->r_mem, CHIP_MIC); if (ctlr->msi) { - /* We have to to mask MSI during processing. */ + /* We have to mask MSI during processing. */ mtx_lock(&ctlr->mtx); ATA_OUTL(ctlr->r_mem, CHIP_MIM, 0); ctlr->msia = 1; /* Deny MIM update during processing. */ Modified: head/sys/dev/mwl/if_mwl.c ============================================================================== --- head/sys/dev/mwl/if_mwl.c Wed Dec 27 03:23:01 2017 (r327230) +++ head/sys/dev/mwl/if_mwl.c Wed Dec 27 03:23:21 2017 (r327231) @@ -1239,7 +1239,7 @@ mwl_reset_vap(struct ieee80211vap *vap, int state) /* * Reset the hardware w/o losing operational state. - * Used to to reset or reload hardware state for a vap. + * Used to reset or reload hardware state for a vap. */ static int mwl_reset(struct ieee80211vap *vap, u_long cmd) Modified: head/sys/dev/sfxge/common/siena_nvram.c ============================================================================== --- head/sys/dev/sfxge/common/siena_nvram.c Wed Dec 27 03:23:01 2017 (r327230) +++ head/sys/dev/sfxge/common/siena_nvram.c Wed Dec 27 03:23:21 2017 (r327231) @@ -527,7 +527,7 @@ siena_nvram_partn_get_version( : MC_CMD_NVRAM_TYPE_DYNAMIC_CFG_PORT1; /* * Ingore missing partitions on port 2, assuming they're due - * to to running on a single port part. + * to running on a single port part. */ if ((1 << dcfg_partn) & ~enp->en_u.siena.enu_partn_mask) { if (entry->port == 2) Modified: head/sys/dev/sio/sio.c ============================================================================== --- head/sys/dev/sio/sio.c Wed Dec 27 03:23:01 2017 (r327230) +++ head/sys/dev/sio/sio.c Wed Dec 27 03:23:21 2017 (r327231) @@ -592,7 +592,7 @@ sioprobe(dev, xrid, rclk, noprobe) * junk after a (very fast) soft reboot and (apparently) after * master reset. * XXX what about the UART bug avoided by waiting in comparam()? - * We don't want to to wait long enough to drain at 2 bps. + * We don't want to wait long enough to drain at 2 bps. */ if (iobase == siocniobase) DELAY((16 + 1) * 1000000 / (comdefaultrate / 10)); Modified: head/sys/dev/sound/isa/mss.h ============================================================================== --- head/sys/dev/sound/isa/mss.h Wed Dec 27 03:23:01 2017 (r327230) +++ head/sys/dev/sound/isa/mss.h Wed Dec 27 03:23:21 2017 (r327231) @@ -183,7 +183,7 @@ typedef struct mixer_def mixer_tab[32][2]; * The AD1848 codec has generic input lines called Line, Aux1 and Aux2. * Soundcard manufacturers have connected actual inputs (CD, synth, line, * etc) to these inputs in different order. Therefore it's difficult - * to assign mixer channels to to these inputs correctly. The following + * to assign mixer channels to these inputs correctly. The following * contains two alternative mappings. The first one is for GUS MAX and * the second is just a generic one (line1, line2 and line3). * (Actually this is not a mapping but rather some kind of interleaving Modified: head/sys/dev/syscons/scvgarndr.c ============================================================================== --- head/sys/dev/syscons/scvgarndr.c Wed Dec 27 03:23:01 2017 (r327230) +++ head/sys/dev/syscons/scvgarndr.c Wed Dec 27 03:23:21 2017 (r327231) @@ -682,7 +682,7 @@ draw_txtmouse(scr_stat *scp, int x, int y) } else #endif /* SC_ALT_MOUSE_IMAGE */ { - /* Red, magenta and brown are mapped to green to to keep it readable */ + /* Red, magenta and brown are mapped to green to keep it readable */ static const int col_conv[16] = { 6, 6, 6, 6, 2, 2, 2, 6, 14, 14, 14, 14, 10, 10, 10, 14 }; Modified: head/sys/fs/nfsclient/nfs_clrpcops.c ============================================================================== --- head/sys/fs/nfsclient/nfs_clrpcops.c Wed Dec 27 03:23:01 2017 (r327230) +++ head/sys/fs/nfsclient/nfs_clrpcops.c Wed Dec 27 03:23:21 2017 (r327231) @@ -5815,7 +5815,7 @@ nfsm_copym(struct mbuf *m, int off, int xfer) /* * Find a file layout that will handle the first bytes of the requested - * range and return the information from it needed to to the I/O operation. + * range and return the information from it needed to the I/O operation. */ int nfscl_findlayoutforio(struct nfscllayout *lyp, uint64_t off, uint32_t rwaccess, Modified: head/sys/i386/i386/support.s ============================================================================== --- head/sys/i386/i386/support.s Wed Dec 27 03:23:01 2017 (r327230) +++ head/sys/i386/i386/support.s Wed Dec 27 03:23:21 2017 (r327231) @@ -556,7 +556,7 @@ END(subyte) /* * copyinstr(from, to, maxlen, int *lencopied) - MP SAFE * - * copy a string from from to to, stop when a 0 character is reached. + * copy a string from 'from' to 'to', stop when a 0 character is reached. * return ENAMETOOLONG if string is longer than maxlen, and * EFAULT on protection violations. If lencopied is non-zero, * return the actual length in *lencopied. Modified: head/sys/kern/vfs_subr.c ============================================================================== --- head/sys/kern/vfs_subr.c Wed Dec 27 03:23:01 2017 (r327230) +++ head/sys/kern/vfs_subr.c Wed Dec 27 03:23:21 2017 (r327231) @@ -349,7 +349,7 @@ PCTRIE_DEFINE(BUF, buf, b_lblkno, buf_trie_alloc, buf_ * * Reevaluate the following cap on the number of vnodes after the physical * memory size exceeds 512GB. In the limit, as the physical memory size - * grows, the ratio of the memory size in KB to to vnodes approaches 64:1. + * grows, the ratio of the memory size in KB to vnodes approaches 64:1. */ #ifndef MAXVNODES_MAX #define MAXVNODES_MAX (512 * 1024 * 1024 / 64) /* 8M */ Modified: head/sys/mips/conf/BERI_SOCKIT ============================================================================== --- head/sys/mips/conf/BERI_SOCKIT Wed Dec 27 03:23:01 2017 (r327230) +++ head/sys/mips/conf/BERI_SOCKIT Wed Dec 27 03:23:21 2017 (r327231) @@ -2,7 +2,7 @@ # BERI_SOCKIT -- Kernel for the SRI/Cambridge "BERI" (Bluespec Extensible # RISC Implementation) FPGA soft core, as configured in its Terasic SoCKit # reference configuration. This kernel configration must be further -# specialized to to include a root filesystem specification. +# specialized to include a root filesystem specification. # # $FreeBSD$ # Modified: head/sys/net/altq/altq_hfsc.h ============================================================================== --- head/sys/net/altq/altq_hfsc.h Wed Dec 27 03:23:01 2017 (r327230) +++ head/sys/net/altq/altq_hfsc.h Wed Dec 27 03:23:21 2017 (r327231) @@ -192,7 +192,7 @@ struct hfsc_class_stats { * representation. * the slope values are scaled to avoid overflow. * the inverse slope values as well as the y-projection of the 1st - * segment are kept in order to to avoid 64-bit divide operations + * segment are kept in order to avoid 64-bit divide operations * that are expensive on 32-bit architectures. * * note: Intel Pentium TSC never wraps around in several thousands of years. Modified: head/sys/net/bpf.c ============================================================================== --- head/sys/net/bpf.c Wed Dec 27 03:23:01 2017 (r327230) +++ head/sys/net/bpf.c Wed Dec 27 03:23:21 2017 (r327231) @@ -689,7 +689,7 @@ bpf_check_upgrade(u_long cmd, struct bpf_d *d, struct * Check if cmd looks like snaplen setting from * pcap_bpf.c:pcap_open_live(). * Note we're not checking .k value here: - * while pcap_open_live() definitely sets to to non-zero value, + * while pcap_open_live() definitely sets to non-zero value, * we'd prefer to treat k=0 (deny ALL) case the same way: e.g. * do not consider upgrading immediately */ Modified: head/sys/net80211/ieee80211_ht.c ============================================================================== --- head/sys/net80211/ieee80211_ht.c Wed Dec 27 03:23:01 2017 (r327230) +++ head/sys/net80211/ieee80211_ht.c Wed Dec 27 03:23:21 2017 (r327231) @@ -3354,7 +3354,7 @@ ieee80211_add_htinfo_body(uint8_t *frm, struct ieee802 } /* - * Add 802.11n HT information information element. + * Add 802.11n HT information element. */ uint8_t * ieee80211_add_htinfo(uint8_t *frm, struct ieee80211_node *ni) Modified: head/sys/net80211/ieee80211_scan_sta.c ============================================================================== --- head/sys/net80211/ieee80211_scan_sta.c Wed Dec 27 03:23:01 2017 (r327230) +++ head/sys/net80211/ieee80211_scan_sta.c Wed Dec 27 03:23:21 2017 (r327231) @@ -119,7 +119,7 @@ static void sta_flush_table(struct sta_table *); /* * match_bss returns a bitmask describing if an entry is suitable * for use. If non-zero the entry was deemed not suitable and it's - * contents explains why. The following flags are or'd to to this + * contents explains why. The following flags are or'd to this * mask and can be used to figure out why the entry was rejected. */ #define MATCH_CHANNEL 0x00001 /* channel mismatch */ Modified: head/sys/powerpc/booke/locore.S ============================================================================== --- head/sys/powerpc/booke/locore.S Wed Dec 27 03:23:01 2017 (r327230) +++ head/sys/powerpc/booke/locore.S Wed Dec 27 03:23:21 2017 (r327231) @@ -114,7 +114,7 @@ __start: * - Switch to temp mapping * - Map 64MB of RAM in TLB1[1] * - Use AS=1, set EPN to KERNBASE and RPN to kernel load address - * - Switch to to TLB1[1] mapping + * - Switch to TLB1[1] mapping * - Invalidate temp mapping * * locore registers use: Modified: head/sys/sparc64/pci/sbbc.c ============================================================================== --- head/sys/sparc64/pci/sbbc.c Wed Dec 27 03:23:01 2017 (r327230) +++ head/sys/sparc64/pci/sbbc.c Wed Dec 27 03:23:21 2017 (r327231) @@ -327,7 +327,7 @@ sbbc_pci_attach(device_t dev) int error, rid; uint32_t val; - /* Nothing to to if we're not the chosen one. */ + /* Nothing to do if we're not the chosen one. */ if ((node = OF_finddevice("/chosen")) == -1) { device_printf(dev, "failed to find /chosen\n"); return (ENXIO); Modified: head/sys/ufs/ffs/ffs_softdep.c ============================================================================== --- head/sys/ufs/ffs/ffs_softdep.c Wed Dec 27 03:23:01 2017 (r327230) +++ head/sys/ufs/ffs/ffs_softdep.c Wed Dec 27 03:23:21 2017 (r327231) @@ -6903,7 +6903,7 @@ softdep_setup_freeblocks(ip, length, flags) UFS_UNLOCK(ump); DIP_SET(ip, i_blocks, DIP(ip, i_blocks) - datablocks); /* - * Push the zero'ed inode to to its disk buffer so that we are free + * Push the zero'ed inode to its disk buffer so that we are free * to delete its dependencies below. Once the dependencies are gone * the buffer can be safely released. */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201712270323.vBR3NMF1058306>