Linux kernel staging patches
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: Yusef Aslam <yuzi54780@outlook.com>
Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3] Staging: rtl8192e: rtllib_rx: fix alignment
Date: Thu, 27 Jun 2024 15:43:33 +0200	[thread overview]
Message-ID: <2024062727-diabolic-lusty-7baf@gregkh> (raw)
In-Reply-To: <CWLP265MB65165E806F938F87CB67BF87FDD62@CWLP265MB6516.GBRP265.PROD.OUTLOOK.COM>

On Wed, Jun 26, 2024 at 01:56:34PM +0100, Yusef Aslam wrote:
> From: Yusef Aslam <YUZi54780@outlook.com>
> Date: Wed, 26 Jun 2024 13:02:02 +0100
> Subject: [PATCH v3] Staging: rtl8192e: rtllib_rx: fix alignment

This all should not be in the body of the email, please use a tool like
'git send-email' to send patches.


> 
> Fix alignment.

We need more description than that, right?  What would you want to see
here?

> 
> Signed-off-by: Yusef Aslam <YUZi54780@outlook.com>
> ---
>  v3:
>  - Used the correct email addresses.
>  - Developed against the correct git repository.
>  v2:
>  - The email address of Greg Kroah-Hartman was wrong.
>  - Developed against the wrong git repository.
>  v1:
>  - Developed against the wrong git repository.
> 
>  drivers/staging/rtl8192e/rtllib_rx.c | 110 +++++++++++++--------------
>  1 file changed, 55 insertions(+), 55 deletions(-)
> 
> diff --git a/drivers/staging/rtl8192e/rtllib_rx.c b/drivers/staging/rtl8192e/rtllib_rx.c
> index 84ca5d769b7e..1f6c4a3de5c2 100644
> --- a/drivers/staging/rtl8192e/rtllib_rx.c
> +++ b/drivers/staging/rtl8192e/rtllib_rx.c
> @@ -410,7 +410,7 @@ static bool add_reorder_entry(struct rx_ts_record *ts,
>  	while (list->next != &ts->rx_pending_pkt_list) {
>  		if (SN_LESS(pReorderEntry->SeqNum, ((struct rx_reorder_entry *)
>  		    list_entry(list->next, struct rx_reorder_entry,
> -		    list))->SeqNum))
> +			       list))->SeqNum))
>  			list = list->next;
>  		else if (SN_EQUAL(pReorderEntry->SeqNum,
>  			((struct rx_reorder_entry *)list_entry(list->next,
> @@ -736,7 +736,7 @@ static u8 parse_subframe(struct rtllib_device *ieee, struct sk_buff *skb,
>  	/* just for debug purpose */
>  	SeqNum = WLAN_GET_SEQ_SEQ(le16_to_cpu(hdr->seq_ctrl));
>  	if ((RTLLIB_QOS_HAS_SEQ(fc)) &&
> -	   (((union frameqos *)(skb->data + RTLLIB_3ADDR_LEN))->field.reserved))
> +	    (((union frameqos *)(skb->data + RTLLIB_3ADDR_LEN))->field.reserved))
>  		is_aggregate_frame = true;
>  
>  	if (RTLLIB_QOS_HAS_SEQ(fc))
> @@ -876,13 +876,13 @@ static int rtllib_rx_check_duplicate(struct rtllib_device *ieee,
>  	frag = WLAN_GET_SEQ_FRAG(sc);
>  
>  	if (!ieee->ht_info->cur_rx_reorder_enable ||
> -		!ieee->current_network.qos_data.active ||
> -		!is_data_frame(skb->data) ||
> -		is_legacy_data_frame(skb->data)) {
> -		if (!ieee80211_is_beacon(hdr->frame_control)) {
> -			if (is_duplicate_packet(ieee, hdr))
> -				return -1;
> -		}
> +	    !ieee->current_network.qos_data.active ||
> +	    !is_data_frame(skb->data) ||
> +	    is_legacy_data_frame(skb->data)) {
> +	  if (!ieee80211_is_beacon(hdr->frame_control)) {
> +	    if (is_duplicate_packet(ieee, hdr))
> +	      return -1;
> +	  }

That's obviously not correct.  Did you run your patch through
checkpatch.pl after creating it?

thanks,

greg k-h

  parent reply	other threads:[~2024-06-27 13:43 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-26 12:56 [PATCH v3] Staging: rtl8192e: rtllib_rx: fix alignment Yusef Aslam
2024-06-26 17:32 ` Philipp Hortmann
2024-06-27  8:06   ` Yusef Aslam
2024-06-27 13:43 ` Greg KH [this message]
2024-06-27 18:09   ` Yusef Aslam
2024-06-29 23:54     ` Bagas Sanjaya
2024-06-30  7:36       ` Philipp Hortmann
2024-06-30  8:31         ` Yusef Aslam

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=2024062727-diabolic-lusty-7baf@gregkh \
    --to=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-staging@lists.linux.dev \
    --cc=yuzi54780@outlook.com \
    /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