* [PATCH] staging: rtl8723bs: hal: sdio_halinit: Remove set but unused varilable pHalData
@ 2019-06-26 17:44 Hariprasad Kelam
2019-06-27 6:38 ` Dan Carpenter
0 siblings, 1 reply; 3+ messages in thread
From: Hariprasad Kelam @ 2019-06-26 17:44 UTC (permalink / raw)
To: Greg Kroah-Hartman, Hariprasad Kelam, Nishka Dasgupta, devel,
linux-kernel
Remove set but unsed variable pHalData in below functions
_InitOperationMode
SetHwReg8723BS
Signed-off-by: Hariprasad Kelam <hariprasad.kelam@gmail.com>
---
drivers/staging/rtl8723bs/hal/sdio_halinit.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/drivers/staging/rtl8723bs/hal/sdio_halinit.c b/drivers/staging/rtl8723bs/hal/sdio_halinit.c
index 4d06ab7..9e8bbee 100644
--- a/drivers/staging/rtl8723bs/hal/sdio_halinit.c
+++ b/drivers/staging/rtl8723bs/hal/sdio_halinit.c
@@ -606,11 +606,9 @@ static void _initSdioAggregationSetting(struct adapter *padapter)
static void _InitOperationMode(struct adapter *padapter)
{
- struct hal_com_data *pHalData;
struct mlme_ext_priv *pmlmeext;
u8 regBwOpMode = 0;
- pHalData = GET_HAL_DATA(padapter);
pmlmeext = &padapter->mlmeextpriv;
/* 1 This part need to modified according to the rate set we filtered!! */
@@ -1413,7 +1411,6 @@ static void ReadAdapterInfo8723BS(struct adapter *padapter)
*/
static void SetHwReg8723BS(struct adapter *padapter, u8 variable, u8 *val)
{
- struct hal_com_data *pHalData;
u8 val8;
#if defined(CONFIG_WOWLAN) || defined(CONFIG_AP_WOWLAN)
@@ -1433,7 +1430,6 @@ static void SetHwReg8723BS(struct adapter *padapter, u8 variable, u8 *val)
#endif
#endif
- pHalData = GET_HAL_DATA(padapter);
switch (variable) {
case HW_VAR_SET_RPWM:
--
2.7.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] staging: rtl8723bs: hal: sdio_halinit: Remove set but unused varilable pHalData
2019-06-26 17:44 [PATCH] staging: rtl8723bs: hal: sdio_halinit: Remove set but unused varilable pHalData Hariprasad Kelam
@ 2019-06-27 6:38 ` Dan Carpenter
2019-06-27 18:05 ` Hariprasad Kelam
0 siblings, 1 reply; 3+ messages in thread
From: Dan Carpenter @ 2019-06-27 6:38 UTC (permalink / raw)
To: Hariprasad Kelam; +Cc: Greg Kroah-Hartman, Nishka Dasgupta, devel, linux-kernel
On Wed, Jun 26, 2019 at 11:14:59PM +0530, Hariprasad Kelam wrote:
> @@ -1433,7 +1430,6 @@ static void SetHwReg8723BS(struct adapter *padapter, u8 variable, u8 *val)
> #endif
> #endif
>
> - pHalData = GET_HAL_DATA(padapter);
>
> switch (variable) {
We need to delete one of those blank lines or it introduces a new
checkpatch warning.
regards,
dan carpenter
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] staging: rtl8723bs: hal: sdio_halinit: Remove set but unused varilable pHalData
2019-06-27 6:38 ` Dan Carpenter
@ 2019-06-27 18:05 ` Hariprasad Kelam
0 siblings, 0 replies; 3+ messages in thread
From: Hariprasad Kelam @ 2019-06-27 18:05 UTC (permalink / raw)
To: Dan Carpenter, Greg Kroah-Hartman, Hariprasad Kelam,
Nishka Dasgupta, devel, linux-kernel
On Thu, Jun 27, 2019 at 09:38:35AM +0300, Dan Carpenter wrote:
> On Wed, Jun 26, 2019 at 11:14:59PM +0530, Hariprasad Kelam wrote:
> > @@ -1433,7 +1430,6 @@ static void SetHwReg8723BS(struct adapter *padapter, u8 variable, u8 *val)
> > #endif
> > #endif
> >
> > - pHalData = GET_HAL_DATA(padapter);
> >
> > switch (variable) {
>
> We need to delete one of those blank lines or it introduces a new
> checkpatch warning.
>
Yes thanks for correcting this . Will resend the patch.
Thanks,
Hariprasad k
> regards,
> dan carpenter
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-06-27 18:05 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-26 17:44 [PATCH] staging: rtl8723bs: hal: sdio_halinit: Remove set but unused varilable pHalData Hariprasad Kelam
2019-06-27 6:38 ` Dan Carpenter
2019-06-27 18:05 ` Hariprasad Kelam
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).