Re: [PATCH] xprtrdma: add missing curly braces, set rc to zero on non-zero

2015-12-02 Thread Anna Schumaker
On 11/24/2015 06:11 PM, Colin King wrote: > From: Colin Ian King > > Add the missing curly braces so that rc is only set to zero when > it is non-zero. Without this minor fix, rc is set to zero even > when it is zero, which is slightly redundant. > > Detected with

[PATCH] xprtrdma: add missing curly braces, set rc to zero on non-zero

2015-11-24 Thread Colin King
From: Colin Ian King Add the missing curly braces so that rc is only set to zero when it is non-zero. Without this minor fix, rc is set to zero even when it is zero, which is slightly redundant. Detected with smatch static analysis. Signed-off-by: Colin Ian King