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]
Message-ID: <1390356108.31946.20.camel@joe-AO722>
Date:	Tue, 21 Jan 2014 18:01:48 -0800
From:	Joe Perches <joe@...ches.com>
To:	Greg KH <gregkh@...uxfoundation.org>
Cc:	Dave Jones <davej@...hat.com>,
	Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
	tvboxspy@...il.com
Subject: Re: staging: vt6656: device.h Remove typedef enum
 __device_init_type.

On Tue, 2014-01-21 at 17:57 -0800, Greg KH wrote:
> On Tue, Jan 21, 2014 at 10:16:43AM -0500, Dave Jones wrote:
> > On Tue, Jan 21, 2014 at 12:21:30AM +0000, Linux Kernel wrote:
> >  > Gitweb:     http://git.kernel.org/linus/;a=commit;h=302433daf47aeb7d21d66e55fb84d6a8fffd4aed
> >  > Commit:     302433daf47aeb7d21d66e55fb84d6a8fffd4aed
> >  > Parent:     a72f8beeedc97b776799a1a80c04eb5312980c9b
> >  > Author:     Malcolm Priestley <tvboxspy@...il.com>
> >  > AuthorDate: Sun Nov 3 17:40:51 2013 +0000
> >  > Committer:  Greg Kroah-Hartman <gregkh@...uxfoundation.org>
> >  > CommitDate: Mon Nov 11 16:31:00 2013 -0800
> >  > 
> >  >     staging: vt6656: device.h Remove typedef enum __device_init_type.
> >  >     
> >  >     Since typedef enum __device_init_type is only ever called
> >  >     in one state.
> >  >     
> >  >     Remove the typedef from main_usb.c:device_init_registers and
> >  >     replace with macro values. The other values may be needed later.
> >  >     
> >  >     Apply cold value to sInitCmd.byInitClass.
> >  >     
> >  >     Remove if braces and correct formatting within.
> > 
> >  ...
> > 
> >  >  	/* load power table */
> >  >  	for (ii = 0; ii < 14; ii++) {
> >  > -            pDevice->abyCCKPwrTbl[ii] = pDevice->abyEEPROM[ii + EEP_OFS_CCK_PWR_TBL];
> >  > -            if (pDevice->abyCCKPwrTbl[ii] == 0)
> >  > -                pDevice->abyCCKPwrTbl[ii] = pDevice->byCCKPwr;
> >  > -            pDevice->abyOFDMPwrTbl[ii] = pDevice->abyEEPROM[ii + EEP_OFS_OFDM_PWR_TBL];
> >  > -            if (pDevice->abyOFDMPwrTbl[ii] == 0)
> >  > -                pDevice->abyOFDMPwrTbl[ii] = pDevice->byOFDMPwrG;
> >  > -        }
> >  > +		pDevice->abyCCKPwrTbl[ii] =
> >  > +			pDevice->abyEEPROM[ii + EEP_OFS_CCK_PWR_TBL];
> >  > +
> >  > +		if (pDevice->abyCCKPwrTbl[ii] == 0)
> >  > +			pDevice->abyCCKPwrTbl[ii] = pDevice->byCCKPwr;
> >  > +			pDevice->abyOFDMPwrTbl[ii] =
> >  > +				pDevice->abyEEPROM[ii + EEP_OFS_OFDM_PWR_TBL];
> >  > +		if (pDevice->abyOFDMPwrTbl[ii] == 0)
> >  > +			pDevice->abyOFDMPwrTbl[ii] = pDevice->byOFDMPwrG;
> >  > +	}
> > 
> > Wrong indentation of the pDevice->abyOFDMPwrTbl[ii] assignment.
> > Wrapping this to 80 columns has actually made this less readable imo.
> 
> Good catch, I'll fix that up after 3.14-rc1 is out, thanks for finding
> it.

It'd also be nice to eventually do away with the
semi-Hungarian notation aby, p, by, etc prefixes
and camelcase naming.

--
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