public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] scsi: qla2xxx: Removed extra space in variable declaration.
@ 2021-02-11 13:16 Milan P. Gandhi
  2021-02-11 15:57 ` Bart Van Assche
  0 siblings, 1 reply; 4+ messages in thread
From: Milan P. Gandhi @ 2021-02-11 13:16 UTC (permalink / raw)
  To: kernel-janitors
  Cc: GR-QLogic-Storage-Upstream, linux-scsi, njavali, jejb,
	martin.petersen

Removed extra space in variable declaration in qla2x00_sysfs_write_nvram

Signed-off-by: Milan P. Gandhi <mgandhi@redhat.com>
---
changes v2:
 - Added a small note about change.
---
diff --git a/drivers/scsi/qla2xxx/qla_attr.c b/drivers/scsi/qla2xxx/qla_attr.c
index ab45ac1e5a72..7f2db8badb6d 100644
--- a/drivers/scsi/qla2xxx/qla_attr.c
+++ b/drivers/scsi/qla2xxx/qla_attr.c
@@ -226,7 +226,7 @@ qla2x00_sysfs_write_nvram(struct file *filp, struct kobject *kobj,
 	struct scsi_qla_host *vha = shost_priv(dev_to_shost(container_of(kobj,
 	    struct device, kobj)));
 	struct qla_hw_data *ha = vha->hw;
-	uint16_t	cnt;
+	uint16_t cnt;
 
 	if (!capable(CAP_SYS_ADMIN) || off != 0 || count != ha->nvram_size ||
 	    !ha->isp_ops->write_nvram)


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

* Re: [PATCH v2] scsi: qla2xxx: Removed extra space in variable declaration.
  2021-02-11 13:16 [PATCH v2] scsi: qla2xxx: Removed extra space in variable declaration Milan P. Gandhi
@ 2021-02-11 15:57 ` Bart Van Assche
  2021-02-11 16:48   ` Himanshu Madhani
  0 siblings, 1 reply; 4+ messages in thread
From: Bart Van Assche @ 2021-02-11 15:57 UTC (permalink / raw)
  To: Milan P. Gandhi, kernel-janitors
  Cc: GR-QLogic-Storage-Upstream, linux-scsi, njavali, jejb,
	martin.petersen

On 2/11/21 5:16 AM, Milan P. Gandhi wrote:
> Removed extra space in variable declaration in qla2x00_sysfs_write_nvram
> 
> Signed-off-by: Milan P. Gandhi <mgandhi@redhat.com>
> ---
> changes v2:
>  - Added a small note about change.
> ---
> diff --git a/drivers/scsi/qla2xxx/qla_attr.c b/drivers/scsi/qla2xxx/qla_attr.c
> index ab45ac1e5a72..7f2db8badb6d 100644
> --- a/drivers/scsi/qla2xxx/qla_attr.c
> +++ b/drivers/scsi/qla2xxx/qla_attr.c
> @@ -226,7 +226,7 @@ qla2x00_sysfs_write_nvram(struct file *filp, struct kobject *kobj,
>  	struct scsi_qla_host *vha = shost_priv(dev_to_shost(container_of(kobj,
>  	    struct device, kobj)));
>  	struct qla_hw_data *ha = vha->hw;
> -	uint16_t	cnt;
> +	uint16_t cnt;
>  
>  	if (!capable(CAP_SYS_ADMIN) || off != 0 || count != ha->nvram_size ||
>  	    !ha->isp_ops->write_nvram)

I'm not sure if such a patch is considered substantial enough to be
included upstream.

For future patches, please follow the guidelines for submitting patches
and use the imperative mood for the subject (Removed -> Remove) and do
not end the patch subject with a dot. See also
Documentation/process/submitting-patches.rst

Bart.



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

* Re: [PATCH v2] scsi: qla2xxx: Removed extra space in variable declaration.
  2021-02-11 15:57 ` Bart Van Assche
@ 2021-02-11 16:48   ` Himanshu Madhani
  2021-02-12  4:10     ` Milan P. Gandhi
  0 siblings, 1 reply; 4+ messages in thread
From: Himanshu Madhani @ 2021-02-11 16:48 UTC (permalink / raw)
  To: Bart Van Assche, Milan P. Gandhi, kernel-janitors
  Cc: GR-QLogic-Storage-Upstream, linux-scsi, njavali, jejb,
	martin.petersen

Hi Milan,

On 2/11/21 9:57 AM, Bart Van Assche wrote:
> On 2/11/21 5:16 AM, Milan P. Gandhi wrote:
>> Removed extra space in variable declaration in qla2x00_sysfs_write_nvram
>>
>> Signed-off-by: Milan P. Gandhi <mgandhi@redhat.com>
>> ---
>> changes v2:
>>   - Added a small note about change.
>> ---
>> diff --git a/drivers/scsi/qla2xxx/qla_attr.c b/drivers/scsi/qla2xxx/qla_attr.c
>> index ab45ac1e5a72..7f2db8badb6d 100644
>> --- a/drivers/scsi/qla2xxx/qla_attr.c
>> +++ b/drivers/scsi/qla2xxx/qla_attr.c
>> @@ -226,7 +226,7 @@ qla2x00_sysfs_write_nvram(struct file *filp, struct kobject *kobj,
>>   	struct scsi_qla_host *vha = shost_priv(dev_to_shost(container_of(kobj,
>>   	    struct device, kobj)));
>>   	struct qla_hw_data *ha = vha->hw;
>> -	uint16_t	cnt;
>> +	uint16_t cnt;
>>   
>>   	if (!capable(CAP_SYS_ADMIN) || off != 0 || count != ha->nvram_size ||
>>   	    !ha->isp_ops->write_nvram)
> 
> I'm not sure if such a patch is considered substantial enough to be
> included upstream.
> 
> For future patches, please follow the guidelines for submitting patches
> and use the imperative mood for the subject (Removed -> Remove) and do
> not end the patch subject with a dot. See also
> Documentation/process/submitting-patches.rst
> 
> Bart.
> 
> 
Agree with Bart here.

What was motivation behind this patch?

if you scroll through code, i am pretty sure you will find more than one 
place where spaces are not consistent (especially 15+ yr old code).

-- 
Himanshu Madhani                               Oracle Linux Engineering

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

* Re: [PATCH v2] scsi: qla2xxx: Removed extra space in variable declaration.
  2021-02-11 16:48   ` Himanshu Madhani
@ 2021-02-12  4:10     ` Milan P. Gandhi
  0 siblings, 0 replies; 4+ messages in thread
From: Milan P. Gandhi @ 2021-02-12  4:10 UTC (permalink / raw)
  To: Himanshu Madhani, Bart Van Assche, kernel-janitors
  Cc: GR-QLogic-Storage-Upstream, linux-scsi, njavali, jejb,
	martin.petersen

Hi Bart, Himanshu,

On 2/11/21 10:18 PM, Himanshu Madhani wrote:
> Hi Milan,
> 
> On 2/11/21 9:57 AM, Bart Van Assche wrote:
>> On 2/11/21 5:16 AM, Milan P. Gandhi wrote:
>>> Removed extra space in variable declaration in qla2x00_sysfs_write_nvram
>>>
>>> Signed-off-by: Milan P. Gandhi <mgandhi@redhat.com>
>>> ---
>>> changes v2:
>>>   - Added a small note about change.
>>> ---
>>> diff --git a/drivers/scsi/qla2xxx/qla_attr.c b/drivers/scsi/qla2xxx/qla_attr.c
>>> index ab45ac1e5a72..7f2db8badb6d 100644
>>> --- a/drivers/scsi/qla2xxx/qla_attr.c
>>> +++ b/drivers/scsi/qla2xxx/qla_attr.c
>>> @@ -226,7 +226,7 @@ qla2x00_sysfs_write_nvram(struct file *filp, struct kobject *kobj,
>>>       struct scsi_qla_host *vha = shost_priv(dev_to_shost(container_of(kobj,
>>>           struct device, kobj)));
>>>       struct qla_hw_data *ha = vha->hw;
>>> -    uint16_t    cnt;
>>> +    uint16_t cnt;
>>>         if (!capable(CAP_SYS_ADMIN) || off != 0 || count != ha->nvram_size ||
>>>           !ha->isp_ops->write_nvram)
>>
>> I'm not sure if such a patch is considered substantial enough to be
>> included upstream.
>>
>> For future patches, please follow the guidelines for submitting patches
>> and use the imperative mood for the subject (Removed -> Remove) and do
>> not end the patch subject with a dot. See also
>> Documentation/process/submitting-patches.rst
>>
>> Bart.
>>
>>
> Agree with Bart here.
> 
> What was motivation behind this patch?
> 
> if you scroll through code, i am pretty sure you will find more than one place where spaces are not consistent (especially 15+ yr old code).
> 
I thought it was a typo and extra space was left, so just fixed it.
But it looks that there are many other places in qla2xxx source with similar declarations.
I apologize for the noise.

Thanks,
Milan.


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

end of thread, other threads:[~2021-02-12  4:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-11 13:16 [PATCH v2] scsi: qla2xxx: Removed extra space in variable declaration Milan P. Gandhi
2021-02-11 15:57 ` Bart Van Assche
2021-02-11 16:48   ` Himanshu Madhani
2021-02-12  4:10     ` Milan P. Gandhi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox