All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Sergey V." <sftp.mtuci@gmail.com>
To: Bashlykov Arthur <madness@xakep.ru>
Cc: gregkh@suse.de, wfp5p@virginia.edu, devel@driverdev.osuosl.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Staging: rtl8192su: ieee80211: fix brace coding style issue and other issues in ieee80211_softmac_wx.c Signed-off-by: Bashlykov Arthur <madness@xakep.ru>
Date: Thu, 27 May 2010 01:40:15 +0400	[thread overview]
Message-ID: <201005270140.16354.sftp.mtuci@gmail.com> (raw)
In-Reply-To: <1274891337-7783-1-git-send-email-madness@xakep.ru>

On Wednesday 26 May 2010 20:28:57  Bashlykov Arthur wrote:

Hi Arthur

> @@ -87,15 +87,15 @@ int ieee80211_wx_get_freq(struct ieee80211_device *ieee,
>                            struct iw_request_info *a,
>                            union iwreq_data *wrqu, char *b)
>  {
> -     struct iw_freq *fwrq = & wrqu->freq;
> +     struct iw_freq *fwrq = &wrqu->freq;
>  
>       if (ieee->current_network.channel == 0)
>               return -1;
> -     //NM 0.7.0 will not accept channel any more.
> +     /* NM 0.7.0 will not accept channel any more. */
>       fwrq->m = ieee80211_wlan_frequencies[ieee->current_network.channel-1] * 100000;
>       fwrq->e = 1;
> -//   fwrq->m = ieee->current_network.channel;
> -//   fwrq->e = 0;
> +     /* fwrq->m = ieee->current_network.channel; */
> +     /* fwrq->e = 0; */
May be just remove dead code?

  
> @@ -230,13 +230,12 @@ int ieee80211_wx_get_rate(struct ieee80211_device *ieee,
>                            union iwreq_data *wrqu, char *extra)
>  {
>       u32 tmp_rate = 0;
> -     //printk("===>mode:%d, halfNmode:%d\n", ieee->mode, ieee->bHalfWirelessN24GMode);
> +     /* printk("===>mode:%d, halfNmode:%d\n", ieee->mode, ieee->bHalfWirelessN24GMode); */
Same


> @@ -529,33 +520,33 @@ int ieee80211_wx_set_power(struct ieee80211_device *ieee,
>  {
>       int ret = 0;
>  #if 1
> -     if(
> +     if {
>               (!ieee->sta_wake_up) ||
> -     //      (!ieee->ps_request_tx_ack) ||
> +     /*      (!ieee->ps_request_tx_ack) || */
Same
>               (!ieee->enter_sleep_state) ||
> -             (!ieee->ps_is_queue_empty)){
> +             (!ieee->ps_is_queue_empty)) {
>  
> -     //      printk("ERROR. PS mode is tryied to be use but driver missed a callback\n\n");
> +     /* printk("ERROR. PS mode is tryied to be use but driver missed a callback\n\n"); */
Same
>  
>               return -1;
>       }
>  #endif
>       down(&ieee->wx_sem);
>  
> -     if (wrqu->power.disabled){
> +     if (wrqu->power.disabled) {
>               ieee->ps = IEEE80211_PS_DISABLED;
>               goto exit;
>       }
>       if (wrqu->power.flags & IW_POWER_TIMEOUT) {
> -             //ieee->ps_period = wrqu->power.value / 1000;
> +             /*ieee->ps_period = wrqu->power.value / 1000; */
Same
>               ieee->ps_timeout = wrqu->power.value / 1000;
>       }
>  
>       if (wrqu->power.flags & IW_POWER_PERIOD) {
>  
> -             //ieee->ps_timeout = wrqu->power.value / 1000;
> +             /* ieee->ps_timeout = wrqu->power.value / 1000; */
Same
>               ieee->ps_period = wrqu->power.value / 1000;
> -             //wrq->value / 1024;
> +             /* wrq->value / 1024; */
Same
>  
>       }
>       switch (wrqu->power.flags & IW_POWER_MODE) {
> @@ -570,7 +561,7 @@ int ieee80211_wx_set_power(struct ieee80211_device *ieee,
>               break;
>  
>       case IW_POWER_ON:
> -     //      ieee->ps = IEEE80211_PS_DISABLED;
> +      /* ieee->ps = IEEE80211_PS_DISABLED; */
Same


> @@ -604,15 +595,15 @@ int ieee80211_wx_get_power(struct ieee80211_device *ieee,
>               wrqu->power.flags = IW_POWER_TIMEOUT;
>               wrqu->power.value = ieee->ps_timeout * 1000;
>       } else {
> -//           ret = -EOPNOTSUPP;
> -//           goto exit;
> +             /* ret = -EOPNOTSUPP; */
> +             /* goto exit; */
Same
>               wrqu->power.flags = IW_POWER_PERIOD;
>               wrqu->power.value = ieee->ps_period * 1000;
> -//ieee->current_network.dtim_period * ieee->current_network.beacon_interval * 1024;
> +/*ieee->current_network.dtim_period * ieee->current_network.beacon_interval * 1024; */
Same

      parent reply	other threads:[~2010-05-26 21:40 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-26 16:28 [PATCH] Staging: rtl8192su: ieee80211: fix brace coding style issue and other issues in ieee80211_softmac_wx.c Signed-off-by: Bashlykov Arthur <madness@xakep.ru> Bashlykov Arthur
2010-05-26 18:48 ` [PATCH] Staging: rtl8192su: ieee80211: fix brace coding style Denis Kirjanov
2010-05-26 18:48   ` [PATCH] Staging: rtl8192su: ieee80211: fix brace coding style issue and other issues in ieee80211_softmac_wx.c Signed-off-by: Bashlykov Arthur <madness@xakep.ru> Denis Kirjanov
2010-05-26 20:28   ` [PATCH] Staging: rtl8192su: ieee80211: fix brace coding style Dan Carpenter
2010-05-26 20:28     ` [PATCH] Staging: rtl8192su: ieee80211: fix brace coding style issue and other issues in ieee80211_softmac_wx.c Dan Carpenter
2010-05-26 21:40 ` Sergey V. [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201005270140.16354.sftp.mtuci@gmail.com \
    --to=sftp.mtuci@gmail.com \
    --cc=devel@driverdev.osuosl.org \
    --cc=gregkh@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=madness@xakep.ru \
    --cc=wfp5p@virginia.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.