Re: [PATCH]trivial: Remove one to many r's in some comments.

From: Joe Perches
Date: Mon Mar 07 2011 - 15:15:26 EST


On Mon, 2011-03-07 at 11:45 -0800, Justin P. Mattock wrote:
> The below patch fixes some typos with one to many "rr's" in a comment.
> PLease have a look and let me know if I missed anything.
> --- a/arch/arm/mach-omap2/smartreflex.c
> +++ b/arch/arm/mach-omap2/smartreflex.c
> @@ -246,7 +246,7 @@ static void sr_stop_vddautocomp(struct omap_sr *sr)
> * driver register and sr device intializtion API's. Only one call
> * will ultimately succeed.
> *
> - * Currenly this function registers interrrupt handler for a particular SR
> + * Currenly this function registers interrupt handler for a particular SR

When you do typo fixes, it'd be good to check the lines
modified to make sure there are no other typos on the
same or nearby lines.

s/intializtion/initialization/
s/Currenly/Currently/


> diff --git a/drivers/net/wireless/rtlwifi/pci.c b/drivers/net/wireless/rtlwifi/pci.c
> index 1758d44..1473476 100644
> --- a/drivers/net/wireless/rtlwifi/pci.c
> +++ b/drivers/net/wireless/rtlwifi/pci.c
> @@ -1506,7 +1506,7 @@ void rtl_pci_stop(struct ieee80211_hw *hw)
> u8 RFInProgressTimeOut = 0;
>
> /*
> - *should before disable interrrupt&adapter
> + *should before disable interrupt&adapter

Bad grammar? Stop HAL before disabling interrupt and adapter?

> diff --git a/drivers/usb/musb/musb_gadget.c b/drivers/usb/musb/musb_gadget.c
> index 2fe3046..c5d03e0 100644
> --- a/drivers/usb/musb/musb_gadget.c
> +++ b/drivers/usb/musb/musb_gadget.c
> @@ -699,7 +699,7 @@ static void rxstate(struct musb *musb, struct musb_request *req)
> * most these gadgets, end of is signified either by a short packet,
> * or filling the last byte of the buffer. (Sending extra data in
> * that last pckate should trigger an overflow fault.) But in mode 1,

s/pckate/packet/

> diff --git a/include/linux/pxa2xx_ssp.h b/include/linux/pxa2xx_ssp.h
> index 2f691e4..d2d4fb6 100644
> --- a/include/linux/pxa2xx_ssp.h
> +++ b/include/linux/pxa2xx_ssp.h
> @@ -56,7 +56,7 @@
> /* PXA27x, PXA3xx */
> #define SSCR0_EDSS (1 << 20) /* Extended data size select */
> #define SSCR0_NCS (1 << 21) /* Network clock select */
> -#define SSCR0_RIM (1 << 22) /* Receive FIFO overrrun interrupt mask */
> +#define SSCR0_RIM (1 << 22) /* Receive FIFO overrun interupt mask */

Fix one, introduce one. Dangers of s/rr/r/

overrun interrupt.



--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/