Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1710698 > unrolled thread

[PATCH 2/2] staging:rtl8188eu Fix coding style issues

Started byjanani-sankarababu <jananis37@gmail.com>
First post2017-08-14 09:50 +0200
Last post2017-08-17 20:10 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH 2/2] staging:rtl8188eu Fix coding style issues janani-sankarababu <jananis37@gmail.com> - 2017-08-14 09:50 +0200
    Re: [PATCH 2/2] staging:rtl8188eu Fix coding style issues Greg KH <gregkh@linuxfoundation.org> - 2017-08-17 20:10 +0200

#1710698 — [PATCH 2/2] staging:rtl8188eu Fix coding style issues

Fromjanani-sankarababu <jananis37@gmail.com>
Date2017-08-14 09:50 +0200
Subject[PATCH 2/2] staging:rtl8188eu Fix coding style issues
Message-ID<ueiil-1lD-1@gated-at.bofh.it>
This patch solves the following warnings
thrown by checkpatch script
WARNING: Comparisons should place the constant
on the right side of the test

Signed-off-by: Janani Sankara Babu <jananis37@gmail.com>
---
 drivers/staging/rtl8188eu/core/rtw_ioctl_set.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/staging/rtl8188eu/core/rtw_ioctl_set.c b/drivers/staging/rtl8188eu/core/rtw_ioctl_set.c
index d8d88b5..767928a 100644
--- a/drivers/staging/rtl8188eu/core/rtw_ioctl_set.c
+++ b/drivers/staging/rtl8188eu/core/rtw_ioctl_set.c
@@ -56,7 +56,7 @@ u8 rtw_do_join(struct adapter *padapter)
 			RT_TRACE(_module_rtl871x_ioctl_set_c_, _drv_info_, ("rtw_do_join(): site survey if scanned_queue is empty\n."));
 			/*  submit site_survey_cmd */
 			ret = rtw_sitesurvey_cmd(padapter, &pmlmepriv->assoc_ssid, 1, NULL, 0);
-			if (_SUCCESS != ret) {
+			if (ret != _SUCCESS) {
 				pmlmepriv->to_join = false;
 				RT_TRACE(_module_rtl871x_ioctl_set_c_, _drv_err_, ("rtw_do_join(): site survey return error\n."));
 			}
@@ -110,7 +110,7 @@ u8 rtw_do_join(struct adapter *padapter)
 				if (!pmlmepriv->LinkDetectInfo.bBusyTraffic ||
 				    pmlmepriv->to_roaming > 0) {
 					ret = rtw_sitesurvey_cmd(padapter, &pmlmepriv->assoc_ssid, 1, NULL, 0);
-					if (_SUCCESS != ret) {
+					if (ret != _SUCCESS) {
 						pmlmepriv->to_join = false;
 						RT_TRACE(_module_rtl871x_ioctl_set_c_, _drv_err_, ("do_join(): site survey return error\n."));
 					}
@@ -621,7 +621,7 @@ int rtw_set_country(struct adapter *adapter, const char *country_code)
 
 	DBG_88E("%s country_code:%s\n", __func__, country_code);
 	for (i = 0; i < ARRAY_SIZE(channel_table); i++) {
-		if (0 == strcmp(channel_table[i].name, country_code)) {
+		if (strcmp(channel_table[i].name, country_code) == 0) {
 			channel_plan = channel_table[i].channel_plan;
 			break;
 		}
-- 
1.9.1

[toc] | [next] | [standalone]


#1714267

FromGreg KH <gregkh@linuxfoundation.org>
Date2017-08-17 20:10 +0200
Message-ID<ufxp0-8vo-21@gated-at.bofh.it>
In reply to#1710698
On Mon, Aug 14, 2017 at 01:11:29PM +0530, janani-sankarababu wrote:
> This patch solves the following warnings
> thrown by checkpatch script
> WARNING: Comparisons should place the constant
> on the right side of the test
> 
> Signed-off-by: Janani Sankara Babu <jananis37@gmail.com>
> ---
>  drivers/staging/rtl8188eu/core/rtw_ioctl_set.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)

Where is patch 1/2?

Please fix up all of these and resend them as a single patch series.

thanks,

greg k-h

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web