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
| ||
|
Date: Sun, 07 May 2017 16:07:22 -0700 From: Joe Perches <joe@...ches.com> To: Jaya Durga <jayad@...c.in>, gregkh@...uxfoundation.org Cc: Larry.Finger@...inger.net, florian.c.schilhabel@...glemail.com, driverdev-devel@...uxdriverproject.org, devel@...verdev.osuosl.org, linux-kernel@...r.kernel.org Subject: Re: [PATCH 3/3] Staging: rtl8712: ieee80211: fixed camelcase coding style issue On Mon, 2017-05-08 at 00:45 +0530, Jaya Durga wrote: > Fixed coding style issue Please list the various renames you are doing. BeaconPeriod -> beacon_period DSConfig -> ds_config ATIMWindow -> atim_window etc... And it's generally better to do these while avoiding changing line breaks. There are maintainers that also would want these renames done in individual separate patches. > diff --git a/drivers/staging/rtl8712/ieee80211.c b/drivers/staging/rtl8712/ieee80211.c [] > @@ -174,7 +174,8 @@ int r8712_generate_ie(struct registry_priv *pregistrypriv) > sz += 8; > ie += sz; > /*beacon interval : 2bytes*/ > - *(__le16 *)ie = cpu_to_le16((u16)pdev_network->Configuration.BeaconPeriod); > + *(__le16 *)ie = cpu_to_le16( > + (u16)pdev_network->configuration.beacon_period); It's also frequently better to use a temporary pointer and convert these relatively long indirections to something simpler like: <whatever_type> *cfg = &pdev_network->configuration; *(__le16 *)ie = cpu_to_le16(cfg->beacon_period); etc... in separate patches.
Powered by blists - more mailing lists