From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4B4AE7471; Fri, 24 Mar 2023 15:41:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1679672474; x=1711208474; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=OstU8LE34yvquXnPkkLldI/Jk6/9+ifZ6noCd0IJf8g=; b=A5Bu4Ri30VVMu1tmBC7Ne5wJU4995orLj4vcHk2mEsMC2GVVZpZBd3jz kos4KEYGbuVZyB7Pjr2gS6BLGgz5zLAXEU1P4+Kuv9IvaWB1I5O9bZAhR lcfW3x6XONM6R900zF14Lx9UYrerCFNekgNCzlrA8STNQmDSQsbPrZLPw pPwmgSvpqYHjdtDhwZmi12dUhAFBwgY3mNYOuNjChHO5MKgtlx5Cdzt81 aPdAKAWUmFsIHz/ahmS90gD9cKR8IYDcGOX/MVoyVV9ItnYQqLb8Ng7ma ofdsDFR9CfYGogxVB7B/vnr4+ZpMCjh8zBe6Hw0wQZIFvfSFFkrVunt60 Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10659"; a="339831771" X-IronPort-AV: E=Sophos;i="5.98,288,1673942400"; d="scan'208";a="339831771" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Mar 2023 08:41:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10659"; a="1012290296" X-IronPort-AV: E=Sophos;i="5.98,288,1673942400"; d="scan'208";a="1012290296" Received: from aschofie-mobl2.amr.corp.intel.com (HELO aschofie-mobl2) ([10.209.62.66]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Mar 2023 08:41:13 -0700 Date: Fri, 24 Mar 2023 08:41:11 -0700 From: Alison Schofield To: Khadija Kamran Cc: outreachy@lists.linux.dev, gregkh@linuxfoundation.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/4] staging: rtl8192e: remove extra blank lines Message-ID: References: <43d5864fc42e51089a0a0626278204bac8313eb0.1679598576.git.kamrankhadijadj@gmail.com> Precedence: bulk X-Mailing-List: linux-staging@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <43d5864fc42e51089a0a0626278204bac8313eb0.1679598576.git.kamrankhadijadj@gmail.com> On Fri, Mar 24, 2023 at 12:19:59AM +0500, Khadija Kamran wrote: > Remove extra blank lines as reported by checkpatch.pl > > "CHECK: Please don't use multiple blank lines" Commit log needs to say why you did it, why this patch need to be merged. Checkpatch itself doesn't satisfy the why requirement. When we do these white space cleanups, the why is typically "to adhere to the Linux kernel coding-style." If you are doing a particular checkpatch cleanup and are not sure what to write, check your predecessors. $ git log --oneline | grep "multiple blank lines" That'll give you many instances. Reference a few, some poor ones sneak through. Alison > > Signed-off-by: Khadija Kamran > --- > drivers/staging/rtl8192e/rtllib_rx.c | 13 ------------- > 1 file changed, 13 deletions(-) > > diff --git a/drivers/staging/rtl8192e/rtllib_rx.c b/drivers/staging/rtl8192e/rtllib_rx.c > index c394c21beefb..c6114d99829b 100644 > --- a/drivers/staging/rtl8192e/rtllib_rx.c > +++ b/drivers/staging/rtl8192e/rtllib_rx.c > @@ -154,7 +154,6 @@ rtllib_frag_cache_get(struct rtllib_device *ieee, > return skb; > } > > - > /* Called only as a tasklet (software IRQ) */ > static int rtllib_frag_cache_invalidate(struct rtllib_device *ieee, > struct rtllib_hdr_4addr *hdr) > @@ -318,7 +317,6 @@ rtllib_rx_frame_decrypt(struct rtllib_device *ieee, struct sk_buff *skb, > return res; > } > > - > /* Called only as a tasklet (software IRQ), by rtllib_rx */ > static inline int > rtllib_rx_frame_decrypt_msdu(struct rtllib_device *ieee, struct sk_buff *skb, > @@ -355,7 +353,6 @@ rtllib_rx_frame_decrypt_msdu(struct rtllib_device *ieee, struct sk_buff *skb, > return 0; > } > > - > /* this function is stolen from ipw2200 driver*/ > #define IEEE_PACKET_RETRY_TIME (5*HZ) > static int is_duplicate_packet(struct rtllib_device *ieee, > @@ -887,7 +884,6 @@ static u8 parse_subframe(struct rtllib_device *ieee, struct sk_buff *skb, > return rxb->nr_subframes; > } > > - > static size_t rtllib_rx_get_hdrlen(struct rtllib_device *ieee, > struct sk_buff *skb, > struct rtllib_rx_stats *rx_stats) > @@ -1569,7 +1565,6 @@ static int rtllib_verify_qos_info(struct rtllib_qos_information_element > return 0; > } > > - > /* Parse a QoS parameter element */ > static int rtllib_read_qos_param_element( > struct rtllib_qos_parameter_info *element_param, > @@ -1599,7 +1594,6 @@ static int rtllib_read_qos_info_element( > return rtllib_verify_qos_info(element_info, QOS_OUI_INFO_SUB_TYPE); > } > > - > /* Write QoS parameters from the ac parameters. */ > static int rtllib_qos_convert_ac_to_parameters(struct rtllib_qos_parameter_info *param_elm, > struct rtllib_qos_data *qos_data) > @@ -1843,7 +1837,6 @@ static void rtllib_parse_mife_generic(struct rtllib_device *ieee, > } > } > > - > if (*tmp_htinfo_len == 0) { > if (info_element->len >= 4 && > info_element->data[0] == 0x00 && > @@ -1932,7 +1925,6 @@ static void rtllib_parse_mife_generic(struct rtllib_device *ieee, > info_element->data[2] == 0x96) > network->cisco_cap_exist = true; > > - > if (info_element->len >= 3 && > info_element->data[0] == 0x00 && > info_element->data[1] == 0x0a && > @@ -2142,13 +2134,11 @@ int rtllib_parse_info_param(struct rtllib_device *ieee, > > network->dtim_data = RTLLIB_DTIM_VALID; > > - > if (info_element->data[2] & 1) > network->dtim_data |= RTLLIB_DTIM_MBCAST; > > offset = (info_element->data[2] >> 1)*2; > > - > if (ieee->assoc_id < 8*offset || > ieee->assoc_id > 8*(offset + info_element->len - 3)) > break; > @@ -2203,7 +2193,6 @@ int rtllib_parse_info_param(struct rtllib_device *ieee, > &tmp_htcap_len); > break; > > - > case MFIE_TYPE_HT_INFO: > netdev_dbg(ieee->dev, "MFIE_TYPE_HT_INFO: %d bytes\n", > info_element->len); > @@ -2392,7 +2381,6 @@ static inline int is_same_network(struct rtllib_network *src, > (dst->capability & WLAN_CAPABILITY_ESS))); > } > > - > static inline void update_network(struct rtllib_device *ieee, > struct rtllib_network *dst, > struct rtllib_network *src) > @@ -2580,7 +2568,6 @@ static inline void rtllib_process_probe_response( > goto free_network; > } > > - > if (!rtllib_legal_channel(ieee, network->channel)) > goto free_network; > > -- > 2.34.1 > >