Re: [PATCH] nfs: direct: drop useless initializer in nfs_direct_write_completion()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxx>

Reviewed-by: Benjamin Coddington <bcodding@xxxxxxxxxx>

Ben





[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux