From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753422AbdJaNzy (ORCPT ); Tue, 31 Oct 2017 09:55:54 -0400 Received: from mail-wm0-f46.google.com ([74.125.82.46]:43627 "EHLO mail-wm0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751926AbdJaNzv (ORCPT ); Tue, 31 Oct 2017 09:55:51 -0400 X-Google-Smtp-Source: ABhQp+TUzv60UBoxlbGY+wo9QnMbATVSEjFggMG/Yn9klLs3eoTzPd3HE1fHahzfAPgMYASPBpYOOA== Date: Tue, 31 Oct 2017 14:55:48 +0100 From: Pali =?utf-8?B?Um9ow6Fy?= To: Andy Shevchenko Cc: Colin King , Darren Hart , Andy Shevchenko , Platform Driver , kernel-janitors@vger.kernel.org, "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] platform: x86: dell-smo8800: remove redundant assignments to byte_data Message-ID: <20171031135548.u5vtsxj7hbnuioz3@pali> References: <20171031110318.20985-1-colin.king@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tuesday 31 October 2017 15:47:58 Andy Shevchenko wrote: > On Tue, Oct 31, 2017 at 1:03 PM, Colin King wrote: > > From: Colin Ian King > > > > Variable byte_data is being initialized and re-assigned with values that > > are never read. Remove these as these redundant assignments. Cleans up > > clang warning: > > > > drivers/platform/x86/dell-smo8800.c:106:2: warning: Value stored to 'byte_data' > > is never read > > Thanks for the patch. > > As I read a code it was from the beginning like this. I dunno what was > a motivation of this pieces, thus I would like to hear Pali. IIRC this part of code comes from the lis3lv* driver which was used for HP EliteBook machines. As both drivers provides similar interface for userspace. > Per se patch looks pretty much good to me. > -- Pali Rohár pali.rohar@gmail.com