From patchwork Wed Jul 14 20:26:27 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roland Dreier X-Patchwork-Id: 112089 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o6EKQWF0011997 for ; Wed, 14 Jul 2010 20:26:32 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752665Ab0GNU0b (ORCPT ); Wed, 14 Jul 2010 16:26:31 -0400 Received: from sj-iport-6.cisco.com ([171.71.176.117]:45815 "EHLO sj-iport-6.cisco.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752566Ab0GNU0b (ORCPT ); Wed, 14 Jul 2010 16:26:31 -0400 Authentication-Results: sj-iport-6.cisco.com; dkim=neutral (message not signed) header.i=none X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AkcFAK+6PUyrR7H+/2dsb2JhbACTK4xGcaYwmlyFJASDfg X-IronPort-AV: E=Sophos;i="4.55,203,1278288000"; d="scan'208";a="559237712" Received: from sj-core-2.cisco.com ([171.71.177.254]) by sj-iport-6.cisco.com with ESMTP; 14 Jul 2010 20:26:30 +0000 Received: from roland-alpha.cisco.com (roland-alpha.cisco.com [10.33.42.9]) by sj-core-2.cisco.com (8.13.8/8.14.3) with ESMTP id o6EKQU4U008118 for ; Wed, 14 Jul 2010 20:26:30 GMT Received: by roland-alpha.cisco.com (Postfix, from userid 33217) id 802891FDF3; Wed, 14 Jul 2010 13:26:27 -0700 (PDT) From: Roland Dreier To: linux-rdma@vger.kernel.org Subject: [PATCH] IB/umad: Remove unused-but-set variable 'already_dead' X-Message-Flag: Warning: May contain useful information Date: Wed, 14 Jul 2010 13:26:27 -0700 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Wed, 14 Jul 2010 20:26:32 +0000 (UTC) diff --git a/drivers/infiniband/core/user_mad.c b/drivers/infiniband/core/user_mad.c index 6babb72..5fa8569 100644 --- a/drivers/infiniband/core/user_mad.c +++ b/drivers/infiniband/core/user_mad.c @@ -1085,7 +1085,6 @@ err_cdev: static void ib_umad_kill_port(struct ib_umad_port *port) { struct ib_umad_file *file; - int already_dead; int id; dev_set_drvdata(port->dev, NULL); @@ -1103,7 +1102,6 @@ static void ib_umad_kill_port(struct ib_umad_port *port) list_for_each_entry(file, &port->file_list, port_list) { mutex_lock(&file->mutex); - already_dead = file->agents_dead; file->agents_dead = 1; mutex_unlock(&file->mutex);