[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <f8fa71b8-05c9-4f1a-92fd-e72a8a2d34eb@gmail.com>
Date: Thu, 7 Nov 2024 09:14:02 +0000
From: "Colin King (gmail)" <colin.i.king@...il.com>
To: Dominique Martinet <asmadeus@...ewreck.org>,
Dan Carpenter <dan.carpenter@...aro.org>
Cc: Eric Van Hensbergen <ericvh@...nel.org>,
Latchesar Ionkov <lucho@...kov.net>,
Christian Schoenebeck <linux_oss@...debyte.com>, v9fs@...ts.linux.dev,
kernel-janitors@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH][next] fs/9p: remove redundant variable ret
On 06/11/2024 22:54, Dominique Martinet wrote:
> Dan Carpenter wrote on Thu, Nov 07, 2024 at 12:45:33AM +0300:
>> On Wed, Nov 06, 2024 at 03:22:09PM +0000, Colin Ian King wrote:
>>> The assignments and return checks on ret are redundant. Clean up
>>> the code by just returning the return value from the call to
>>> v9fs_init_inode_cache.
>> [...]
>>
>> Better to delete the whole function and call v9fs_init_inode_cache()
>> directly.
>
> Makes sense, and if we go there delete v9fs_cache_unregister as well so
> the init/destroy pair properly; that also is a single function call.
>
> Thanks!
OK, will do.
Colin
Powered by blists - more mailing lists