lkml.org 
[lkml]   [2020]   [Apr]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] wimax: remove some redundant assignments to variable result
From
From: Colin King <colin.king@canonical.com>
Date: Sun, 5 Apr 2020 13:06:02 +0100

> From: Colin Ian King <colin.king@canonical.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@canonical.com>

Applied, thanks.

\
 
 \ /
  Last update: 2020-04-06 19:21    [W:0.295 / U:0.000 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site