lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Thu, 5 Jul 2012 20:24:21 +0300
From:	Aaro Koskinen <aaro.koskinen@....fi>
To:	Miguel Gómez <magomez@...lia.com>
Cc:	arnaud.patard@...-net.org, gregkh@...uxfoundation.org,
	dan.carpenter@...cle.com, devel@...verdev.osuosl.org,
	linux-kernel@...r.kernel.org
Subject: Re: [PATCH 01/19] Staging: xgifb: Comment cleaning.

Hi,

On Thu, Jul 05, 2012 at 04:45:44PM +0200, Miguel Gómez wrote:
> Remove commented code and useless comments. Leave only those with relevant
> hints to the code.
> 
> Signed-off-by: Miguel Gómez <magomez@...lia.com>

Some minor comments below:

> -/*
> - * XG20, XG21, XG40, XG42 frame buffer device
> - * for Linux kernels  2.5.x, 2.6.x
> - * Base on TW's sis fbdev code.

A lot of code was copy-pasted from Thomas Winischhofer's sisfb driver,
I'm not sure if it's OK to remove the credit...?

> -		/* TW: We can't switch off CRT1 on LVDS/Chrontel
> +		/* We can't switch off CRT1 on LVDS/Chrontel
>  		 * in 8bpp Modes */
>  		if ((xgifb_info->hasVB == HASVB_LVDS) ||
>  		    (xgifb_info->hasVB == HASVB_LVDS_CHRONTEL)) {
>  			doit = 0;
>  		}
> -		/* TW: We can't switch off CRT1 on 301B-DH
> +		/* We can't switch off CRT1 on 301B-DH
>                * in 8bpp Modes if using LCD */

These could be also fixed according to multiline comment style at the
same go.

> diff --git a/drivers/staging/xgifb/vb_init.h b/drivers/staging/xgifb/vb_init.h
> index a27b4fe..be5589c 100644
> --- a/drivers/staging/xgifb/vb_init.h
> +++ b/drivers/staging/xgifb/vb_init.h
> @@ -3,4 +3,3 @@
>  extern unsigned char XGIInitNew(struct pci_dev *pdev);
>  extern struct XGI21_LVDSCapStruct  XGI21_LCDCapList[13];
>  #endif
> -
[...]
> diff --git a/drivers/staging/xgifb/vb_util.h b/drivers/staging/xgifb/vb_util.h
> index 9161de1..ff40247 100644
> --- a/drivers/staging/xgifb/vb_util.h
> +++ b/drivers/staging/xgifb/vb_util.h
> @@ -6,4 +6,3 @@ extern void xgifb_reg_or(unsigned long, u8, unsigned);
>  extern void xgifb_reg_and(unsigned long, u8, unsigned);
>  extern void xgifb_reg_and_or(unsigned long, u8, unsigned, unsigned);
>  #endif
> -

These changes are not really "comment cleaning".

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ