[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20170329183558.GA18142@stefanha-x1.localdomain>
Date: Wed, 29 Mar 2017 19:35:58 +0100
From: Stefan Hajnoczi <stefanha@...hat.com>
To: Colin King <colin.king@...onical.com>
Cc: "David S . Miller" <davem@...emloft.net>,
Jorgen Hansen <jhansen@...are.com>,
"Michael S . Tsirkin" <mst@...hat.com>,
Adit Ranadive <aditr@...are.com>,
George Zhang <georgezhang@...are.com>,
Julia Lawall <julia.lawall@...6.fr>, netdev@...r.kernel.org,
kernel-janitors@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH][V2] VSOCK: remove unnecessary ternary operator on return
value
On Wed, Mar 29, 2017 at 04:33:55PM +0100, Colin King wrote:
> From: Colin Ian King <colin.king@...onical.com>
>
> 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@...onical.com>
> ---
> net/vmw_vsock/vmci_transport.c | 22 +++++++---------------
> 1 file changed, 7 insertions(+), 15 deletions(-)
Reviewed-by: Stefan Hajnoczi <stefanha@...hat.com>
Download attachment "signature.asc" of type "application/pgp-signature" (456 bytes)
Powered by blists - more mailing lists