Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751768AbdGYRCS (ORCPT ); Tue, 25 Jul 2017 13:02:18 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:35126 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751612AbdGYRCM (ORCPT ); Tue, 25 Jul 2017 13:02:12 -0400 Date: Tue, 25 Jul 2017 10:02:08 -0700 From: Brian Norris To: Arnd Bergmann Cc: David Woodhouse , Boris Brezillon , Marek Vasut , Richard Weinberger , Cyrille Pitchen , Mario Rugiero , Colin Ian King , Geliang Tang , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mtd: remove unused variable in mtdswap Message-ID: <20170725170208.GA77953@google.com> References: <20170725154208.355381-1-arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170725154208.355381-1-arnd@arndb.de> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 593 Lines: 16 On Tue, Jul 25, 2017 at 05:41:58PM +0200, Arnd Bergmann wrote: > The only user of this variable was removed, leading to a > new harmless warning: > > drivers/mtd/mtdswap.c: In function 'mtdswap_add_debugfs': > drivers/mtd/mtdswap.c:1317:17: error: unused variable 'dev' [-Werror=unused-variable] > > This removes the variable as well. > > Fixes: e8e3edb95ce6 ("mtd: create per-device and module-scope debugfs entries") > Signed-off-by: Arnd Bergmann I beat you to it: https://patchwork.ozlabs.org/patch/793136/ [PATCH] mtd: mtdswap: remove unused variables 'dev' and 'gd'