linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] Staging:wilc1000:host_interface: Removed unnecessary blank line
@ 2017-03-02 15:35 Georgios Emmanouil
  2017-03-02 15:37 ` [PATCH 2/3] Staging:wilc1000:host_interface: Fixed alignment to match open parenthesis Georgios Emmanouil
  2017-03-04 22:49 ` [PATCH 1/3] Staging:wilc1000:host_interface: Removed unnecessary blank line Julian Calaby
  0 siblings, 2 replies; 6+ messages in thread
From: Georgios Emmanouil @ 2017-03-02 15:35 UTC (permalink / raw)
  To: aditya.shankar, ganesh.krishna, gregkh
  Cc: linux-wireless, devel, linux-kernel

Removed unnecessary blank line.

Signed-off-by: Georgios Emmanouil <geo.emmnl@gmail.com>
---
 drivers/staging/wilc1000/host_interface.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c
index c307cce..090fd43 100644
--- a/drivers/staging/wilc1000/host_interface.c
+++ b/drivers/staging/wilc1000/host_interface.c
@@ -287,7 +287,6 @@ static int wilc_enqueue_cmd(struct host_if_msg *msg)
 	return 0;
 }

-
 /* The u8IfIdx starts from 0 to NUM_CONCURRENT_IFC -1, but 0 index used as
  * special purpose in wilc device, so we add 1 to the index to starts from 1.
  * As a result, the returned index will be 1 to NUM_CONCURRENT_IFC.
--
2.1.4

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 2/3] Staging:wilc1000:host_interface: Fixed alignment to match open parenthesis
  2017-03-02 15:35 [PATCH 1/3] Staging:wilc1000:host_interface: Removed unnecessary blank line Georgios Emmanouil
@ 2017-03-02 15:37 ` Georgios Emmanouil
  2017-03-02 15:38   ` [PATCH 3/3] Staging:wilc1000:host_interface: Integrated two 'if' statements to a single 'if' statement Georgios Emmanouil
  2017-03-04 22:49   ` [PATCH 2/3] Staging:wilc1000:host_interface: Fixed alignment to match open parenthesis Julian Calaby
  2017-03-04 22:49 ` [PATCH 1/3] Staging:wilc1000:host_interface: Removed unnecessary blank line Julian Calaby
  1 sibling, 2 replies; 6+ messages in thread
From: Georgios Emmanouil @ 2017-03-02 15:37 UTC (permalink / raw)
  To: aditya.shankar, ganesh.krishna, gregkh
  Cc: linux-wireless, devel, linux-kernel

Fixed alignment to match open parenthesis.

Signed-off-by: Georgios Emmanouil <geo.emmnl@gmail.com>
---
 drivers/staging/wilc1000/host_interface.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c
index 090fd43..bbe1a09 100644
--- a/drivers/staging/wilc1000/host_interface.c
+++ b/drivers/staging/wilc1000/host_interface.c
@@ -1349,7 +1349,7 @@ static s32 Handle_RcvdGnrlAsyncInfo(struct wilc_vif *vif,

 				if (u32RcvdAssocRespInfoLen != 0) {
 					s32Err = wilc_parse_assoc_resp_info(rcv_assoc_resp, u32RcvdAssocRespInfoLen,
-								    &pstrConnectRespInfo);
+									    &pstrConnectRespInfo);
 					if (s32Err) {
 						netdev_err(vif->ndev, "wilc_parse_assoc_resp_info() returned error %d\n", s32Err);
 					} else {
--
2.1.4

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 3/3] Staging:wilc1000:host_interface: Integrated two 'if' statements to a single 'if' statement
  2017-03-02 15:37 ` [PATCH 2/3] Staging:wilc1000:host_interface: Fixed alignment to match open parenthesis Georgios Emmanouil
@ 2017-03-02 15:38   ` Georgios Emmanouil
  2017-03-04 22:50     ` Julian Calaby
  2017-03-04 22:49   ` [PATCH 2/3] Staging:wilc1000:host_interface: Fixed alignment to match open parenthesis Julian Calaby
  1 sibling, 1 reply; 6+ messages in thread
From: Georgios Emmanouil @ 2017-03-02 15:38 UTC (permalink / raw)
  To: aditya.shankar, ganesh.krishna, gregkh
  Cc: linux-wireless, devel, linux-kernel

Removed unnecessary 'if' statement and integrated the condition to the
previous 'if' statement.

Signed-off-by: Georgios Emmanouil <geo.emmnl@gmail.com>
---
 drivers/staging/wilc1000/host_interface.c | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c
index bbe1a09..4936e80 100644
--- a/drivers/staging/wilc1000/host_interface.c
+++ b/drivers/staging/wilc1000/host_interface.c
@@ -1355,13 +1355,11 @@ static s32 Handle_RcvdGnrlAsyncInfo(struct wilc_vif *vif,
 					} else {
 						strConnectInfo.status = pstrConnectRespInfo->status;

-						if (strConnectInfo.status == SUCCESSFUL_STATUSCODE) {
-							if (pstrConnectRespInfo->ies) {
-								strConnectInfo.resp_ies_len = pstrConnectRespInfo->ies_len;
-								strConnectInfo.resp_ies = kmalloc(pstrConnectRespInfo->ies_len, GFP_KERNEL);
-								memcpy(strConnectInfo.resp_ies, pstrConnectRespInfo->ies,
-								       pstrConnectRespInfo->ies_len);
-							}
+						if (strConnectInfo.status == SUCCESSFUL_STATUSCODE && pstrConnectRespInfo->ies) {
+							strConnectInfo.resp_ies_len = pstrConnectRespInfo->ies_len;
+							strConnectInfo.resp_ies = kmalloc(pstrConnectRespInfo->ies_len, GFP_KERNEL);
+							memcpy(strConnectInfo.resp_ies, pstrConnectRespInfo->ies,
+							       pstrConnectRespInfo->ies_len);
 						}

 						if (pstrConnectRespInfo) {
--
2.1.4

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH 1/3] Staging:wilc1000:host_interface: Removed unnecessary blank line
  2017-03-02 15:35 [PATCH 1/3] Staging:wilc1000:host_interface: Removed unnecessary blank line Georgios Emmanouil
  2017-03-02 15:37 ` [PATCH 2/3] Staging:wilc1000:host_interface: Fixed alignment to match open parenthesis Georgios Emmanouil
@ 2017-03-04 22:49 ` Julian Calaby
  1 sibling, 0 replies; 6+ messages in thread
From: Julian Calaby @ 2017-03-04 22:49 UTC (permalink / raw)
  To: Georgios Emmanouil
  Cc: Aditya Shankar, Ganesh Krishna, Greg KH, linux-wireless, devel,
	linux-kernel

Hi All,

On Fri, Mar 3, 2017 at 2:35 AM, Georgios Emmanouil <geo.emmnl@gmail.com> wrote:
> Removed unnecessary blank line.
>
> Signed-off-by: Georgios Emmanouil <geo.emmnl@gmail.com>

Reviewed-by: Julian Calaby <julian.calaby@gmail.com>

> ---
>  drivers/staging/wilc1000/host_interface.c | 1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c
> index c307cce..090fd43 100644
> --- a/drivers/staging/wilc1000/host_interface.c
> +++ b/drivers/staging/wilc1000/host_interface.c
> @@ -287,7 +287,6 @@ static int wilc_enqueue_cmd(struct host_if_msg *msg)
>         return 0;
>  }
>
> -
>  /* The u8IfIdx starts from 0 to NUM_CONCURRENT_IFC -1, but 0 index used as
>   * special purpose in wilc device, so we add 1 to the index to starts from 1.
>   * As a result, the returned index will be 1 to NUM_CONCURRENT_IFC.
> --
> 2.1.4
>



-- 
Julian Calaby

Email: julian.calaby@gmail.com
Profile: http://www.google.com/profiles/julian.calaby/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 2/3] Staging:wilc1000:host_interface: Fixed alignment to match open parenthesis
  2017-03-02 15:37 ` [PATCH 2/3] Staging:wilc1000:host_interface: Fixed alignment to match open parenthesis Georgios Emmanouil
  2017-03-02 15:38   ` [PATCH 3/3] Staging:wilc1000:host_interface: Integrated two 'if' statements to a single 'if' statement Georgios Emmanouil
@ 2017-03-04 22:49   ` Julian Calaby
  1 sibling, 0 replies; 6+ messages in thread
From: Julian Calaby @ 2017-03-04 22:49 UTC (permalink / raw)
  To: Georgios Emmanouil
  Cc: Aditya Shankar, Ganesh Krishna, Greg KH, linux-wireless, devel,
	linux-kernel

Hi All,

On Fri, Mar 3, 2017 at 2:37 AM, Georgios Emmanouil <geo.emmnl@gmail.com> wrote:
> Fixed alignment to match open parenthesis.
>
> Signed-off-by: Georgios Emmanouil <geo.emmnl@gmail.com>

Reviewed-by: Julian Calaby <julian.calaby@gmail.com>

> ---
>  drivers/staging/wilc1000/host_interface.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

-- 
Julian Calaby

Email: julian.calaby@gmail.com
Profile: http://www.google.com/profiles/julian.calaby/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 3/3] Staging:wilc1000:host_interface: Integrated two 'if' statements to a single 'if' statement
  2017-03-02 15:38   ` [PATCH 3/3] Staging:wilc1000:host_interface: Integrated two 'if' statements to a single 'if' statement Georgios Emmanouil
@ 2017-03-04 22:50     ` Julian Calaby
  0 siblings, 0 replies; 6+ messages in thread
From: Julian Calaby @ 2017-03-04 22:50 UTC (permalink / raw)
  To: Georgios Emmanouil
  Cc: Aditya Shankar, Ganesh Krishna, Greg KH, linux-wireless, devel,
	linux-kernel

Hi All,

On Fri, Mar 3, 2017 at 2:38 AM, Georgios Emmanouil <geo.emmnl@gmail.com> wrote:
> Removed unnecessary 'if' statement and integrated the condition to the
> previous 'if' statement.
>
> Signed-off-by: Georgios Emmanouil <geo.emmnl@gmail.com>

Reviewed-by: Julian Calaby <julian.calaby@gmail.com>

> ---
>  drivers/staging/wilc1000/host_interface.c | 12 +++++-------
>  1 file changed, 5 insertions(+), 7 deletions(-)

-- 
Julian Calaby

Email: julian.calaby@gmail.com
Profile: http://www.google.com/profiles/julian.calaby/

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-03-04 22:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-02 15:35 [PATCH 1/3] Staging:wilc1000:host_interface: Removed unnecessary blank line Georgios Emmanouil
2017-03-02 15:37 ` [PATCH 2/3] Staging:wilc1000:host_interface: Fixed alignment to match open parenthesis Georgios Emmanouil
2017-03-02 15:38   ` [PATCH 3/3] Staging:wilc1000:host_interface: Integrated two 'if' statements to a single 'if' statement Georgios Emmanouil
2017-03-04 22:50     ` Julian Calaby
2017-03-04 22:49   ` [PATCH 2/3] Staging:wilc1000:host_interface: Fixed alignment to match open parenthesis Julian Calaby
2017-03-04 22:49 ` [PATCH 1/3] Staging:wilc1000:host_interface: Removed unnecessary blank line Julian Calaby

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).