[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20200406.102027.658947559034471738.davem@davemloft.net>
Date: Mon, 06 Apr 2020 10:20:27 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: colin.king@...onical.com
Cc: inaky.perez-gonzalez@...el.com, linux-wimax@...el.com,
netdev@...r.kernel.org, kernel-janitors@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] wimax: remove some redundant assignments to variable
result
From: Colin King <colin.king@...onical.com>
Date: Sun, 5 Apr 2020 13:06:02 +0100
> From: Colin Ian King <colin.king@...onical.com>
>
> In function i2400m_bm_buf_alloc there is no need to use a variable
> 'result' to return -ENOMEM, just return the literal value. In the
> function i2400m_setup the variable 'result' is initialized with a
> value that is never read, it is a redundant assignment that can
> be removed.
>
> Addresses-Coverity: ("Unused value")
> Signed-off-by: Colin Ian King <colin.king@...onical.com>
Applied, thanks.
Powered by blists - more mailing lists