2015-11-14 22:31:16

by Nicholas A. Bellinger

[permalink] [raw]
Subject: Re: [PATCH] iscsi-target: return -ENOMEM instead of -1 in case of failed kmalloc()

Hi Luis,

Apologies for the delayed response.

On Mon, 2015-10-19 at 21:18 +0100, Luis de Bethencourt wrote:
> Smatch complains about returning hard coded error codes, silence this
> warning.
>
> drivers/target/iscsi/iscsi_target_parameters.c:211 iscsi_create_default_params() warn: returning -1 instead of -ENOMEM is sloppy
>
> Signed-off-by: Luis de Bethencourt <[email protected]>
> ---
>
> Hi,
>
> This doesn't change the functionality. It is just about using the more specific
> errno. And at the same time silencing smatch.
>
> Thanks,
> Luis
>
> drivers/target/iscsi/iscsi_target_parameters.c | 10 +++++-----
> 1 file changed, 5 insertions(+), 5 deletions(-)
>

Applied to target-pending/queue-fixes.

Thank you,

--nab


2015-11-15 01:11:56

by Luis de Bethencourt

[permalink] [raw]
Subject: Re: [PATCH] iscsi-target: return -ENOMEM instead of -1 in case of failed kmalloc()

On 14/11/15 22:31, Nicholas A. Bellinger wrote:
> Hi Luis,
>
> Apologies for the delayed response.
>

No worries. I understand maintainers are very busy.

Thanks for taking the time to review and merge :)

Enjoy your weekend,
Luis


> On Mon, 2015-10-19 at 21:18 +0100, Luis de Bethencourt wrote:
>> Smatch complains about returning hard coded error codes, silence this
>> warning.
>>
>> drivers/target/iscsi/iscsi_target_parameters.c:211 iscsi_create_default_params() warn: returning -1 instead of -ENOMEM is sloppy
>>
>> Signed-off-by: Luis de Bethencourt <[email protected]>
>> ---
>>
>> Hi,
>>
>> This doesn't change the functionality. It is just about using the more specific
>> errno. And at the same time silencing smatch.
>>
>> Thanks,
>> Luis
>>
>> drivers/target/iscsi/iscsi_target_parameters.c | 10 +++++-----
>> 1 file changed, 5 insertions(+), 5 deletions(-)
>>
>
> Applied to target-pending/queue-fixes.
>
> Thank you,
>
> --nab
>
>