From: Dan Carpenter <dan.carpenter@oracle.com>
To: Dean Lee <dean.lee@atmel.com>
Cc: gregkh@linuxfoundation.org, devel@driverdev.osuosl.org,
linux-wireless@vger.kernel.org, rachel.kim@atmel.com,
chris.park@atmel.com, nicolas.ferre@atmel.com,
johnny.kim@atmel.com
Subject: Re: [PATCH 3/6] staging: wilc1000: rework driver handler
Date: Tue, 30 Jun 2015 12:27:19 +0300 [thread overview]
Message-ID: <20150630092719.GM28762@mwanda> (raw)
In-Reply-To: <1435653278-5168-3-git-send-email-dean.lee@atmel.com>
On Tue, Jun 30, 2015 at 05:34:35PM +0900, Dean Lee wrote:
> argument type change for support 64 bit system.
>
> Signed-off-by: Dean Lee <dean.lee@atmel.com>
> -u32 gu8FlushedJoinReqDrvHandler;
> +void *gpFlushedJoinReqDrvHandler;
There are a lot of variables renamed. It makes reviewing this patch
hard. Also the new names are bad style so just keep the original names
for now and fix the names in a later patch.
> - if ((pstrHostIfSetOperationMode->u32Mode) == (u32)NULL) {
> + if (pstrHostIfSetOperationMode == NULL) {
This was not in the patch description. Do it in a later patch.
> @@ -6838,17 +6838,14 @@ void NetworkInfoReceived(u8 *pu8Buffer, u32 u32Length)
> {
> s32 s32Error = WILC_SUCCESS;
> tstrHostIFmsg strHostIFmsg;
> - u32 drvHandler;
> - tstrWILC_WFIDrv *pstrWFIDrv = NULL;
> -
> - drvHandler = ((pu8Buffer[u32Length - 4]) | (pu8Buffer[u32Length - 3] << 8) | (pu8Buffer[u32Length - 2] << 16) | (pu8Buffer[u32Length - 1] << 24));
> - pstrWFIDrv = (tstrWILC_WFIDrv *)drvHandler;
> -
> + uintptr_t drvData;
> + void *drvHandler = NULL;
More renaming. Do this in a different patch.
> static int linux_wlan_init_test_config(struct net_device *dev, linux_wlan_t *p_nic)
> {
> -
> + void *drvHandler = NULL;
Bad indenting.
> unsigned char c_val[64];
> #ifndef STATIC_MACADDRESS
> unsigned char mac_add[] = {0x00, 0x80, 0xC2, 0x5E, 0xa2, 0xff};
> @@ -1102,62 +1102,62 @@ static int linux_wlan_init_test_config(struct net_device *dev, linux_wlan_t *p_n
> goto _fail_;
> }
>
> - *(int *)c_val = (u32)pstrWFIDrv;
> + *(int *)c_val = (uintptr_t)pstrWFIDrv;
>
> - if (!g_linux_wlan->oup.wlan_cfg_set(1, WID_SET_DRV_HANDLER, c_val, 4, 0, 0))
> + if (!g_linux_wlan->oup.wlan_cfg_set(1, WID_SET_DRV_HANDLER, c_val, 4, 0, drvHandler))
> goto _fail_;
We are changing from 0 to drvHandler. That is not described in the
patch description. Do it in a different patch.
regards,
dan carpenter
next prev parent reply other threads:[~2015-06-30 9:27 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-30 8:34 [PATCH 1/6] staging: wilc1000: modify build error Dean Lee
2015-06-30 8:34 ` [PATCH 2/6] staging: wilc1000: delete 'WILC_WFIDrvHandle' structure Dean Lee
2015-07-07 2:21 ` Greg KH
2015-06-30 8:34 ` [PATCH 3/6] staging: wilc1000: rework driver handler Dean Lee
2015-06-30 9:27 ` Dan Carpenter [this message]
2015-06-30 8:34 ` [PATCH 4/6] staging: wilc1000: rework address value Dean Lee
2015-06-30 9:31 ` Dan Carpenter
2015-06-30 16:42 ` Greg KH
2015-06-30 8:34 ` [PATCH 5/6] staging: wilc1000: fix initialize warning issue Dean Lee
2015-06-30 9:39 ` Dan Carpenter
2015-07-07 2:19 ` Greg KH
2015-06-30 8:34 ` [PATCH 6/6] staging: wilc1000: delete unused value Dean Lee
2015-06-30 9:40 ` Dan Carpenter
2015-07-07 2:20 ` Greg KH
2015-06-30 8:50 ` [PATCH 1/6] staging: wilc1000: modify build error Dan Carpenter
[not found] ` <55925A25.8030608@atmel.com>
2015-06-30 9:10 ` Dan Carpenter
2015-06-30 16:42 ` Greg KH
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=20150630092719.GM28762@mwanda \
--to=dan.carpenter@oracle.com \
--cc=chris.park@atmel.com \
--cc=dean.lee@atmel.com \
--cc=devel@driverdev.osuosl.org \
--cc=gregkh@linuxfoundation.org \
--cc=johnny.kim@atmel.com \
--cc=linux-wireless@vger.kernel.org \
--cc=nicolas.ferre@atmel.com \
--cc=rachel.kim@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.