2016-04-25 15:43:24

by Parth Sane

[permalink] [raw]
Subject: [PATCH v6] rtl8712: Fixed alignment to match open parenthesis

Fixed alignment to match open parenthesis.

Signed-off-by: Parth Sane <[email protected]>

---
Changes in v6:
-Added line before Signed-off message

drivers/staging/rtl8712/hal_init.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/drivers/staging/rtl8712/hal_init.c b/drivers/staging/rtl8712/hal_init.c
index 0c76fbc..0dd458d 100644
--- a/drivers/staging/rtl8712/hal_init.c
+++ b/drivers/staging/rtl8712/hal_init.c
@@ -197,8 +197,8 @@ static u8 rtl8712_dl_fw(struct _adapter *padapter)
0x0000ffff);
memcpy(ppayload, ptr, dump_imem_sz);
r8712_write_mem(padapter, RTL8712_DMA_VOQ,
- dump_imem_sz + TXDESC_SIZE,
- (u8 *)ptx_desc);
+ dump_imem_sz + TXDESC_SIZE,
+ (u8 *)ptx_desc);
ptr += dump_imem_sz;
imem_sz -= dump_imem_sz;
} while (imem_sz > 0);
@@ -226,7 +226,8 @@ static u8 rtl8712_dl_fw(struct _adapter *padapter)
0x0000ffff);
memcpy(ppayload, ptr, dump_emem_sz);
r8712_write_mem(padapter, RTL8712_DMA_VOQ,
- dump_emem_sz + TXDESC_SIZE, (u8 *)ptx_desc);
+ dump_emem_sz + TXDESC_SIZE,
+ (u8 *)ptx_desc);
ptr += dump_emem_sz;
emem_sz -= dump_emem_sz;
} while (emem_sz > 0);
@@ -278,7 +279,7 @@ static u8 rtl8712_dl_fw(struct _adapter *padapter)
ptx_desc->txdw0 |= cpu_to_le32(BIT(28));
memcpy(ppayload, &fwhdr.fwpriv, fwhdr.fw_priv_sz);
r8712_write_mem(padapter, RTL8712_DMA_VOQ,
- fwhdr.fw_priv_sz + TXDESC_SIZE, (u8 *)ptx_desc);
+ fwhdr.fw_priv_sz + TXDESC_SIZE, (u8 *)ptx_desc);

/* polling dmem code done */
i = 100;
--
1.9.1


2016-04-26 14:31:15

by Luis de Bethencourt

[permalink] [raw]
Subject: Re: [PATCH v6] rtl8712: Fixed alignment to match open parenthesis

On 25/04/16 16:43, Parth Sane wrote:
> Fixed alignment to match open parenthesis.
>
> Signed-off-by: Parth Sane <[email protected]>
>
> ---
> Changes in v6:
> -Added line before Signed-off message
>

This last version looks good to me. Did you find this issue with checkpatch.pl?

Thanks,
Luis

2016-04-26 14:33:34

by Parth Sane

[permalink] [raw]
Subject: Re: [PATCH v6] rtl8712: Fixed alignment to match open parenthesis

Hi,
Thanks for the feedback. I did find this issue with the assistance checkpatch.pl script.
Regards,
Parth Sane
> On 26-Apr-2016, at 8:00 PM, Luis de Bethencourt <[email protected]> wrote:
>
> On 25/04/16 16:43, Parth Sane wrote:
>> Fixed alignment to match open parenthesis.
>>
>> Signed-off-by: Parth Sane <[email protected]>
>>
>> ---
>> Changes in v6:
>> -Added line before Signed-off message
>>
>
> This last version looks good to me. Did you find this issue with checkpatch.pl?
>
> Thanks,
> Luis
>


Attachments:
signature.asc (842.00 B)
Message signed with OpenPGP using GPGMail

2016-04-26 14:48:02

by Parth Sane

[permalink] [raw]
Subject: Re: [PATCH v6] rtl8712: Fixed alignment to match open parenthesis

Hi,
Yes you are right on that regard. I did do that in my previous patches.
It?s just something that I will have to remember now onwards. Thanks.
Regards,
Parth Sane
> On 26-Apr-2016, at 8:14 PM, Luis de Bethencourt <[email protected]> wrote:
>
> On 26/04/16 15:33, Parth Sane wrote:
>> Hi,
>> Thanks for the feedback. I did find this issue with the assistance checkpatch.pl script.
>> Regards,
>> Parth Sane
>
> Normally people mention the checkpatch warning they are fixing.
>
> For example:
> https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=5f10ef7dce02d8e36665974aca0977cda58c1122
>
> Verbosity in the commit message is a good thing :)
>
> I have tested that your patch still applies cleanly to Greg's staging-testing branch.
>
> Thanks,
> Luis
>
>>> On 26-Apr-2016, at 8:00 PM, Luis de Bethencourt <[email protected]> wrote:
>>>
>>> On 25/04/16 16:43, Parth Sane wrote:
>>>> Fixed alignment to match open parenthesis.
>>>>
>>>> Signed-off-by: Parth Sane <[email protected]>
>>>>
>>>> ---
>>>> Changes in v6:
>>>> -Added line before Signed-off message
>>>>
>>>
>>> This last version looks good to me. Did you find this issue with checkpatch.pl?
>>>
>>> Thanks,
>>> Luis
>>>
>>


Attachments:
signature.asc (842.00 B)
Message signed with OpenPGP using GPGMail