lkml.org 
[lkml]   [2017]   [Nov]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] drivers: hv: balloon: remove extraneous assignment to region_start
On Wed, 18 Oct 2017 12:52:12 +0100
Colin King <colin.king@canonical.com> wrote:

> From: Colin Ian King <colin.king@canonical.com>
>
> The variable region_start is assigned twice, the first value is
> never read and redundant, so can be removed. We can clean up the
> code further by assigning rg_start directly rather than using the
> temporary variable region_start which can then be removed. Cleans
> up the clang warning:
>
> drivers/hv/hv_balloon.c:976:3: warning: Value stored to 'region_start'
> is never read
>
> Signed-off-by: Colin Ian King <colin.king@canonical.com>

LGTM

Acked-by: Stephen Hemminger <sthemmin@microsoft.com>


\
 
 \ /
  Last update: 2017-11-10 05:58    [W:1.028 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site