[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <3279bc99-0dc7-4cbe-b7a4-88e877b84251@linux.alibaba.com>
Date: Fri, 26 Apr 2024 16:09:56 +0800
From: Wen Gu <guwen@...ux.alibaba.com>
To: Wenjia Zhang <wenjia@...ux.ibm.com>,
Alexandra Winter <wintera@...ux.ibm.com>, twinkler@...ux.ibm.com,
hca@...ux.ibm.com, gor@...ux.ibm.com, agordeev@...ux.ibm.com,
davem@...emloft.net, edumazet@...gle.com, kuba@...nel.org,
pabeni@...hat.com, jaka@...ux.ibm.com
Cc: borntraeger@...ux.ibm.com, svens@...ux.ibm.com,
alibuda@...ux.alibaba.com, tonylu@...ux.alibaba.com,
linux-kernel@...r.kernel.org, linux-s390@...r.kernel.org,
netdev@...r.kernel.org
Subject: Re: [PATCH net-next v6 07/11] net/smc: register loopback-ism into
SMC-D device list
On 2024/4/26 16:04, Wenjia Zhang wrote:
>
>
> On 25.04.24 15:29, Alexandra Winter wrote:
>>
>>
>> On 25.04.24 13:29, Wenjia Zhang wrote:
>>>> + if (!smcd->pnetid[0]) {
>>>> + fentry = list_first_entry_or_null(&smcd_dev_list.list,
>>>> + struct smcd_dev, list);
>>>> + if (fentry && smc_ism_is_loopback(fentry))
>>>> + list_add(&smcd->list, &fentry->list);
>>>> + else
>>>> + list_add(&smcd->list, &smcd_dev_list.list);
>>>> + } else {
>>>> list_add_tail(&smcd->list, &smcd_dev_list.list);
>>>> - else
>>>> - list_add(&smcd->list, &smcd_dev_list.list);
>>>> + }
>>>
>>> Nit: here the pair of curly brackets are unnecessary.
>>
>> Actually
>> https://www.kernel.org/doc/html/latest/process/coding-style.html#codingstyle
>> tells you to use those braces.
> Thanks, @Alexandra!
> Then @Wen, forget my comments on this pls!
OK, Wenjia. Thanks!
Powered by blists - more mailing lists