[lvc-project] [PATCH] nfs: direct: drop useless initializer in nfs_direct_write_completion()

Benjamin Coddington bcodding at redhat.com
Fri Apr 11 14:04:35 MSK 2025


On 8 Apr 2025, at 16:53, Sergey Shtylyov wrote:

> In nfs_direct_write_completion(), the local variable req isn't used outside
> the *while* loop and is assigned to right at the start of that loop's body,
> so its initializer appears useless -- drop it; then move the declaration to
> the loop body (which happens to have a pointless empty line anyway)...
>
> Found by Linux Verification Center (linuxtesting.org) with the Svace static
> analysis tool.
>
> Signed-off-by: Sergey Shtylyov <s.shtylyov at omp.ru>

Reviewed-by: Benjamin Coddington <bcodding at redhat.com>

Ben




More information about the lvc-project mailing list