Re: [PATCH][V2] VSOCK: remove unnecessary ternary operator on return value
From: David Miller
Date: Thu Mar 30 2017 - 14:07:39 EST
From: Colin King <colin.king@xxxxxxxxxxxxx>
Date: Wed, 29 Mar 2017 16:33:55 +0100
> From: Colin Ian King <colin.king@xxxxxxxxxxxxx>
>
> Rather than assign the positive errno values to ret and then
> checking if it is positive and flip the sign, just return the
> errno value.
>
> Detected by CoverityScan, CID#986649 ("Logically Dead Code")
>
> Signed-off-by: Colin Ian King <colin.king@xxxxxxxxxxxxx>
Applied to net-next, thanks.