All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dan Carpenter <dan.carpenter@oracle.com>
To: Tony Cho <tony.cho@atmel.com>
Cc: gregkh@linuxfoundation.org, devel@driverdev.osuosl.org,
	austin.shin@atmel.com, linux-wireless@vger.kernel.org,
	Nicolas.FERRE@atmel.com, adel.noureldin@atmel.com,
	leo.kim@atmel.com, adham.abozaeid@atmel.com
Subject: Re: [PATCH V2 03/12] staging: wilc1000: rename strInterfaceInfo in the sturct wilc
Date: Thu, 22 Oct 2015 14:17:04 +0300	[thread overview]
Message-ID: <20151022111704.GN7340@mwanda> (raw)
In-Reply-To: <1445318816-21686-4-git-send-email-tony.cho@atmel.com>

On Tue, Oct 20, 2015 at 02:26:47PM +0900, Tony Cho wrote:
> This patch renames strInterfaceInfo in the struct wilc to the vif. In
> addition, unnecessary print statements around it are removed in this patch.
> 
> Signed-off-by: Tony Cho <tony.cho@atmel.com>
> ---
>  drivers/staging/wilc1000/linux_wlan.c             | 91 +++++++++++------------
>  drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 72 +++++++++---------
>  drivers/staging/wilc1000/wilc_wfi_netdevice.h     |  2 +-
>  3 files changed, 80 insertions(+), 85 deletions(-)
> 
> diff --git a/drivers/staging/wilc1000/linux_wlan.c b/drivers/staging/wilc1000/linux_wlan.c
> index 2bea103..971b99a 100644
> --- a/drivers/staging/wilc1000/linux_wlan.c
> +++ b/drivers/staging/wilc1000/linux_wlan.c
> @@ -366,24 +366,21 @@ struct net_device *GetIfHandler(u8 *pMacHeader)
>  	Bssid  = pMacHeader + 10;
>  	Bssid1 = pMacHeader + 4;
>  
> -	for (i = 0; i < g_linux_wlan->vif_num; i++) {
> -		if (!memcmp(Bssid1, g_linux_wlan->strInterfaceInfo[i].aBSSID, ETH_ALEN) ||
> -		    !memcmp(Bssid, g_linux_wlan->strInterfaceInfo[i].aBSSID, ETH_ALEN))	{
> -			return g_linux_wlan->strInterfaceInfo[i].wilc_netdev;
> -		}
> -	}
> +	for (i = 0; i < g_linux_wlan->vif_num; i++)
> +		if (!memcmp(Bssid1, g_linux_wlan->vif[i].aBSSID, ETH_ALEN) ||
> +		    !memcmp(Bssid, g_linux_wlan->vif[i].aBSSID, ETH_ALEN))
> +			return g_linux_wlan->vif[i].wilc_netdev;
> +

Removing the curly braces was wrong.  Multi-line indents get curly
braces for readability even though the compiler does not insist on them.

regards,
dan carpenter


  reply	other threads:[~2015-10-22 11:17 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-20  5:26 [PATCH 00/12] WILC1000 V2 for the g_linux_wlan Tony Cho
2015-10-20  5:26 ` [PATCH V2 01/12] staging: wilc1000: change the type of wilc1000_initialized Tony Cho
2015-10-20  5:26 ` [PATCH V2 02/12] staging: wilc1000: rename u8NoIfcs in the struct wilc Tony Cho
2015-10-20  5:26 ` [PATCH V2 03/12] staging: wilc1000: rename strInterfaceInfo in the sturct wilc Tony Cho
2015-10-22 11:17   ` Dan Carpenter [this message]
2015-10-22 11:19     ` Dan Carpenter
2015-10-23  1:17       ` Tony Cho
2015-10-20  5:26 ` [PATCH V2 04/12] staging: wilc1000: rename aSrcAddress in the struct wilc_vif Tony Cho
2015-10-20  5:26 ` [PATCH V2 05/12] staging: wilc1000: rename aBSSID in the sturct wilc_vif Tony Cho
2015-10-20  5:26 ` [PATCH V2 06/12] staging: wilc1000: rename drvHandler in the struct wilc_vif Tony Cho
2015-10-20  5:26 ` [PATCH V2 07/12] staging: wilc1000: rename wilc_netdev " Tony Cho
2015-10-20  5:26 ` [PATCH V2 08/12] staging: wilc1000: move clean up codes into wl_wlan_cleanup function Tony Cho
2015-10-20  5:26 ` [PATCH V2 09/12] staging: wilc1000: rename wilc_firmware in the struct wilc Tony Cho
2015-10-20  5:26 ` [PATCH V2 10/12] staging: wilc1000: remove COMPLEMENT_BOOT Tony Cho
2015-10-20  5:26 ` [PATCH V2 11/12] staging: wilc1000: introduce struct wilc_sdio for sdio data Tony Cho
2015-10-20  5:26 ` [PATCH V2 12/12] staging: wilc1000: assign pointer of g_linux_wlan to sdio device data Tony Cho

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=20151022111704.GN7340@mwanda \
    --to=dan.carpenter@oracle.com \
    --cc=Nicolas.FERRE@atmel.com \
    --cc=adel.noureldin@atmel.com \
    --cc=adham.abozaeid@atmel.com \
    --cc=austin.shin@atmel.com \
    --cc=devel@driverdev.osuosl.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=leo.kim@atmel.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=tony.cho@atmel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.