From: Greg KH <gregkh@linuxfoundation.org>
To: Kartikey Singh <dr.kartikeynrc@gmail.com>
Cc: insafonov@gmail.com, devel@driverdev.osuosl.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] drivers: staging: rtl8188eu: include: Removed unnecssary defined macros
Date: Sun, 15 Jan 2017 11:57:21 +0100 [thread overview]
Message-ID: <20170115105721.GC26374@kroah.com> (raw)
In-Reply-To: <20170115073923.wqtzyolvv44rnqzg@kartikey-HP-Notebook>
On Sun, Jan 15, 2017 at 01:09:23PM +0530, Kartikey Singh wrote:
> Removed macros not in use.
>
> Signed-off-by: Kartikey Singh <dr.kartikeynrc@gmail.com>
> ---
> drivers/staging/rtl8188eu/include/wifi.h | 12 +++---------
> 1 file changed, 3 insertions(+), 9 deletions(-)
>
> diff --git a/drivers/staging/rtl8188eu/include/wifi.h b/drivers/staging/rtl8188eu/include/wifi.h
> index 9e08e68..9c9c334 100644
> --- a/drivers/staging/rtl8188eu/include/wifi.h
> +++ b/drivers/staging/rtl8188eu/include/wifi.h
> @@ -480,15 +480,6 @@ static inline int IsFrameTypeCtrl(unsigned char *pframe)
> Below is the definition for 802.11n
> ------------------------------------------------------------------------------*/
>
> -#define SetOrderBit(pbuf) \
> - do { \
> - *(unsigned short *)(pbuf) |= cpu_to_le16(_ORDER_); \
> - } while (0)
> -
> -#define GetOrderBit(pbuf) \
> - (((*(unsigned short *)(pbuf)) & le16_to_cpu(_ORDER_)) != 0)
> -
> -
That's good, but:
> /**
> * struct rtw_ieee80211_bar - HT Block Ack Request
> *
> @@ -758,6 +749,8 @@ enum ht_cap_ampdu_factor {
> #define P2P_STATUS_FAIL_USER_REJECT 0x0B
>
> /* Value of Invitation Flags Attribute */
> +
> +/*
> #define P2P_INVITATION_FLAGS_PERSISTENT BIT(0)
>
> #define DMP_P2P_DEVCAP_SUPPORT (P2P_DEVCAP_SERVICE_DISCOVERY | \
> @@ -766,6 +759,7 @@ enum ht_cap_ampdu_factor {
> P2P_DEVCAP_INVITATION_PROC)
>
> #define DMP_P2P_GRPCAP_SUPPORT (P2P_GRPCAP_INTRABSS)
> +*/
Why did you comment these out and not just remove them?
No need keeping around useless stuff, right?
thanks,
greg k-h
prev parent reply other threads:[~2017-01-15 10:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-15 7:39 [PATCH] drivers: staging: rtl8188eu: include: Removed unnecssary defined macros Kartikey Singh
2017-01-15 10:57 ` Greg KH [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=20170115105721.GC26374@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=devel@driverdev.osuosl.org \
--cc=dr.kartikeynrc@gmail.com \
--cc=insafonov@gmail.com \
--cc=linux-kernel@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox