From patchwork Tue Apr 22 15:29:52 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean Delvare X-Patchwork-Id: 4033411 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 1D75ABFF02 for ; Tue, 22 Apr 2014 15:30:22 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 84FF320221 for ; Tue, 22 Apr 2014 15:30:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B045C20211 for ; Tue, 22 Apr 2014 15:30:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756782AbaDVP36 (ORCPT ); Tue, 22 Apr 2014 11:29:58 -0400 Received: from cantor2.suse.de ([195.135.220.15]:42531 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750959AbaDVP3z (ORCPT ); Tue, 22 Apr 2014 11:29:55 -0400 Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 60C79ACF0; Tue, 22 Apr 2014 15:29:54 +0000 (UTC) Date: Tue, 22 Apr 2014 17:29:52 +0200 From: Jean Delvare To: linux-wireless@vger.kernel.org Cc: Lauro Ramos Venancio , Aloisio Almeida Jr , Samuel Ortiz Subject: [PATCH] NFC: microread: Delete dead code in microread_i2c_irq_thread_fn Message-ID: <20140422172952.03dfa721@endymion.delvare> Organization: SUSE Linux X-Mailer: Claws Mail 3.9.3 (GTK+ 2.24.22; x86_64-suse-linux-gnu) MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Fix the following warning (with W=1): drivers/nfc/microread/i2c.c: In function "microread_i2c_irq_thread_fn": drivers/nfc/microread/i2c.c:215:21: warning: variable "client" set but not used [-Wunused-but-set-variable] struct i2c_client *client; ^ Signed-off-by: Jean Delvare Cc: Lauro Ramos Venancio Cc: Aloisio Almeida Jr Cc: Samuel Ortiz --- drivers/nfc/microread/i2c.c | 3 --- 1 file changed, 3 deletions(-) --- linux-3.15-rc2.orig/drivers/nfc/microread/i2c.c 2014-04-22 17:14:06.962088154 +0200 +++ linux-3.15-rc2/drivers/nfc/microread/i2c.c 2014-04-22 17:25:54.467845993 +0200 @@ -212,7 +212,6 @@ flush: static irqreturn_t microread_i2c_irq_thread_fn(int irq, void *phy_id) { struct microread_i2c_phy *phy = phy_id; - struct i2c_client *client; struct sk_buff *skb = NULL; int r; @@ -221,8 +220,6 @@ static irqreturn_t microread_i2c_irq_thr return IRQ_NONE; } - client = phy->i2c_dev; - if (phy->hard_fault != 0) return IRQ_HANDLED;