From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756017AbdKJE6L (ORCPT ); Thu, 9 Nov 2017 23:58:11 -0500 Received: from mail-pg0-f65.google.com ([74.125.83.65]:55823 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755924AbdKJE6J (ORCPT ); Thu, 9 Nov 2017 23:58:09 -0500 X-Google-Smtp-Source: ABhQp+T9VdB0AjADnI7SEidHsv9j9Z3ElLK0zhDkiLxPgwUkj4FtAlIh1Arb2KKJKCZtspuNDc5ENQ== Date: Fri, 10 Nov 2017 13:57:19 +0900 From: Stephen Hemminger To: Colin King Cc: "K . Y . Srinivasan" , Haiyang Zhang , Stephen Hemminger , devel@linuxdriverproject.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] drivers: hv: balloon: remove extraneous assignment to region_start Message-ID: <20171110135719.4b6d0ae7@shemminger-XPS-13-9360> In-Reply-To: <20171018115212.29111-1-colin.king@canonical.com> References: <20171018115212.29111-1-colin.king@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 18 Oct 2017 12:52:12 +0100 Colin King wrote: > From: Colin Ian King > > 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 LGTM Acked-by: Stephen Hemminger