Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753181AbcDVXb6 (ORCPT ); Fri, 22 Apr 2016 19:31:58 -0400 Received: from down.free-electrons.com ([37.187.137.238]:54026 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751800AbcDVXb5 (ORCPT ); Fri, 22 Apr 2016 19:31:57 -0400 Date: Sat, 23 Apr 2016 01:31:44 +0200 From: Alexandre Belloni To: =?iso-8859-1?Q?Myl=E8ne?= Josserand Cc: rtc-linux@googlegroups.com, Alessandro Zummo , linux-kernel@vger.kernel.org Subject: Re: [PATCH 4/6] rtc: rv3029: Removes some checks and warnings Message-ID: <20160422233144.GG17051@piout.net> References: <20160422232946.GF17051@piout.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20160422232946.GF17051@piout.net> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 825 Lines: 30 On 23/04/2016 at 01:29:46 +0200, Alexandre Belloni wrote : > Hi, > > On 21/04/2016 at 20:24:17 +0200, Myl?ne Josserand wrote : > > @@ -829,8 +829,6 @@ static void rv3029_unregister_driver(void) > > > > static int rv3049_probe(struct spi_device *spi) > > { > > - int res; > > - unsigned int tmp; > > Well, you just introduced those variables in the previous patch. > And I forgot to add that you still have a few checkpatch warnings to remove while at it: WARNING: Prefer 'unsigned int' to bare use of 'unsigned' #129: FILE: drivers/rtc/rtc-rv3029c2.c:129: + unsigned len) WARNING: Prefer 'unsigned int' to bare use of 'unsigned' #141: FILE: drivers/rtc/rtc-rv3029c2.c:141: + unsigned len) -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com