From: Greg KH <gregkh@linuxfoundation.org>
To: "Christian Müller" <muellerch-privat@web.de>
Cc: devel@driverdev.osuosl.org, felix.trommer@hotmail.de,
linux-kernel@i4.cs.fau.de, linux-kernel@vger.kernel.org,
johnfwhitmore@gmail.com
Subject: Re: [PATCH 2/3] drivers/staging/rtl8192u: Remove comment-out code
Date: Mon, 3 Jun 2019 15:06:37 +0200 [thread overview]
Message-ID: <20190603130637.GC30732@kroah.com> (raw)
In-Reply-To: <20190603122104.2564-3-muellerch-privat@web.de>
On Mon, Jun 03, 2019 at 02:21:03PM +0200, Christian Müller wrote:
> From: Felix Trommer <felix.trommer@hotmail.de>
>
> Remove the majority of all commented-out code. Commented out code, that
> was adressed by a comment itself is not removed. The code that we left
> in as comments was mostly due to the "pseudo-code"-like nature of the
> code that helped to clarify certain functionalities.
>
> Signed-off-by: Felix Trommer <felix.trommer@hotmail.de>
> Signed-off-by: Christian Müller <muellerch-privat@web.de>
> ---
> drivers/staging/rtl8192u/ieee80211/dot11d.h | 2 +-
> .../staging/rtl8192u/ieee80211/ieee80211.h | 35 ++-----
> .../rtl8192u/ieee80211/ieee80211_crypt_ccmp.c | 1 -
> .../rtl8192u/ieee80211/ieee80211_crypt_tkip.c | 1 -
> .../rtl8192u/ieee80211/ieee80211_module.c | 2 -
> .../staging/rtl8192u/ieee80211/ieee80211_rx.c | 50 +---------
> .../rtl8192u/ieee80211/ieee80211_softmac.c | 93 +++----------------
> .../rtl8192u/ieee80211/ieee80211_softmac_wx.c | 13 +--
> .../staging/rtl8192u/ieee80211/ieee80211_tx.c | 3 +-
> .../staging/rtl8192u/ieee80211/ieee80211_wx.c | 19 +---
> .../rtl8192u/ieee80211/rtl819x_BAProc.c | 3 -
> .../staging/rtl8192u/ieee80211/rtl819x_HT.h | 2 -
> .../rtl8192u/ieee80211/rtl819x_HTProc.c | 54 ++---------
> .../staging/rtl8192u/ieee80211/rtl819x_Qos.h | 4 +-
> .../rtl8192u/ieee80211/rtl819x_TSProc.c | 11 ---
> drivers/staging/rtl8192u/r8190_rtl8256.c | 3 -
> drivers/staging/rtl8192u/r8192U_core.c | 5 +-
> drivers/staging/rtl8192u/r8192U_dm.c | 60 ------------
> drivers/staging/rtl8192u/r8192U_wx.c | 2 -
> drivers/staging/rtl8192u/r819xU_firmware.c | 1 -
> 20 files changed, 38 insertions(+), 326 deletions(-)
>
> diff --git a/drivers/staging/rtl8192u/ieee80211/dot11d.h b/drivers/staging/rtl8192u/ieee80211/dot11d.h
> index 8b485fa18089..f27267307b3f 100644
> --- a/drivers/staging/rtl8192u/ieee80211/dot11d.h
> +++ b/drivers/staging/rtl8192u/ieee80211/dot11d.h
> @@ -54,4 +54,4 @@ void dot11d_scan_complete(struct ieee80211_device *dev);
> int is_legal_channel(struct ieee80211_device *dev, u8 channel);
> int to_legal_channel(struct ieee80211_device *dev, u8 channel);
>
> -#endif /* #ifndef __INC_DOT11D_H */
> +#endif
This type of comment is there for a good reason :(
> diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211.h b/drivers/staging/rtl8192u/ieee80211/ieee80211.h
> index 8be8a94a2253..d110e9333799 100644
> --- a/drivers/staging/rtl8192u/ieee80211/ieee80211.h
> +++ b/drivers/staging/rtl8192u/ieee80211/ieee80211.h
> @@ -106,17 +106,13 @@ struct cb_desc {
> u8 bRTSUseShortGI:1;
> u8 bMulticast:1;
> u8 bBroadcast:1;
> - /* u8 reserved2:2; */
> u8 drv_agg_enable:1;
> u8 reserved2:1;
>
> /* Tx Desc related element(12-19) */
> u8 rata_index;
> u8 queue_index;
> - /* u8 reserved3; */
> - /* u8 reserved4; */
> u16 txbuf_size;
> - /* u8 reserved5; */
> u8 RATRIndex;
> u8 reserved6;
> u8 reserved7;
> @@ -127,9 +123,6 @@ struct cb_desc {
> u8 rts_rate;
> u8 ampdu_factor;
> u8 ampdu_density;
> - /* u8 reserved9; */
> - /* u8 reserved10; */
> - /* u8 reserved11; */
> u8 DrvAggrNum;
> u16 pkt_size;
> u8 reserved12;
> @@ -883,7 +876,8 @@ enum ieee80211_mfie {
> MFIE_TYPE_QOS_PARAMETER = 222,
> };
>
> -/* Minimal header; can be used for passing 802.11 frames with sufficient
> +/*
> + * Minimal header; can be used for passing 802.11 frames with sufficient
> * information to determine what type of underlying data type is actually
> * stored in the data.
> */
That change is not removing commented out code :(
Please be a lot more careful as to what you are doing in a patch when
you submit it...
> @@ -1144,7 +1138,6 @@ struct ieee80211_tim_parameters {
> u8 tim_period;
> } __packed;
>
> -//#else
> struct ieee80211_wmm_ts_info {
> u8 ac_dir_tid;
> u8 ac_up_psb;
> @@ -1274,7 +1267,6 @@ enum {WMM_all_frame, WMM_two_frame, WMM_four_frame, WMM_six_frame};
> #define IEEE80211_PS_MBCAST IEEE80211_DTIM_MBCAST
>
> /* added by David for QoS 2006/6/30 */
> -//#define WMM_Hang_8187
> #ifdef WMM_Hang_8187
> #undef WMM_Hang_8187
> #endif
Are you sure you should remove this commented out line?
thanks,
greg k-h
next prev parent reply other threads:[~2019-06-03 13:06 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-03 12:21 [PATCH 0/3] Fixing style errors in staging/drivers/rtl8192u Christian Müller
2019-06-03 12:21 ` [PATCH 1/3] drivers/staging/rtl8192u: Reformat comments Christian Müller
2019-06-03 13:04 ` Greg KH
2019-06-03 12:21 ` [PATCH 2/3] drivers/staging/rtl8192u: Remove comment-out code Christian Müller
2019-06-03 13:06 ` Greg KH [this message]
2019-06-03 12:21 ` [PATCH 3/3] drivers/staging/rtl8192u: Fix of checkpatch-errors Christian Müller
2019-06-03 13:05 ` Greg KH
2019-06-03 13:09 ` Joe Perches
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=20190603130637.GC30732@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=devel@driverdev.osuosl.org \
--cc=felix.trommer@hotmail.de \
--cc=johnfwhitmore@gmail.com \
--cc=linux-kernel@i4.cs.fau.de \
--cc=linux-kernel@vger.kernel.org \
--cc=muellerch-privat@web.de \
/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.