From patchwork Wed Aug 4 21:32:43 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roland Dreier X-Patchwork-Id: 117146 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 o74LRIH6002486 for ; Wed, 4 Aug 2010 21:32:47 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934760Ab0HDVcq (ORCPT ); Wed, 4 Aug 2010 17:32:46 -0400 Received: from sj-iport-6.cisco.com ([171.71.176.117]:65221 "EHLO sj-iport-6.cisco.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759089Ab0HDVcq (ORCPT ); Wed, 4 Aug 2010 17:32:46 -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: AnEFALd4WUyrR7H+/2dsb2JhbACTR4xicao2mzaFOwSEHg X-IronPort-AV: E=Sophos;i="4.55,317,1278288000"; d="scan'208";a="568620641" Received: from sj-core-2.cisco.com ([171.71.177.254]) by sj-iport-6.cisco.com with ESMTP; 04 Aug 2010 21:32:43 +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 o74LWhVt015658; Wed, 4 Aug 2010 21:32:43 GMT Received: by roland-alpha.cisco.com (Postfix, from userid 33217) id AE79020439; Wed, 4 Aug 2010 14:32:43 -0700 (PDT) From: Roland Dreier To: linux-rdma@vger.kernel.org Cc: Faisal Latif , Chien Tung Subject: [PATCH 2/3] RDMA/nes: Fix showing wqm_quanta References: X-Message-Flag: Warning: May contain useful information Date: Wed, 04 Aug 2010 14:32:43 -0700 In-Reply-To: (Roland Dreier's message of "Wed, 04 Aug 2010 14:31:00 -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, 04 Aug 2010 21:32:47 +0000 (UTC) diff --git a/drivers/infiniband/hw/nes/nes.c b/drivers/infiniband/hw/nes/nes.c index 969a01c..d53480e 100644 --- a/drivers/infiniband/hw/nes/nes.c +++ b/drivers/infiniband/hw/nes/nes.c @@ -1099,7 +1099,7 @@ static ssize_t nes_show_wqm_quanta(struct device_driver *ddp, char *buf) i++; } - return snprintf(buf, PAGE_SIZE, "0x%X\n", wqm_quanta); + return snprintf(buf, PAGE_SIZE, "0x%X\n", wqm_quanta_value); }