From patchwork Tue Jan 14 15:45:11 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eli Cohen X-Patchwork-Id: 3486301 Return-Path: X-Original-To: patchwork-linux-rdma@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 BA81CC02DD for ; Tue, 14 Jan 2014 15:45:42 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id ADE9420213 for ; Tue, 14 Jan 2014 15:45:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A42C92021B for ; Tue, 14 Jan 2014 15:45:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751490AbaANPpj (ORCPT ); Tue, 14 Jan 2014 10:45:39 -0500 Received: from mail-ee0-f52.google.com ([74.125.83.52]:53084 "EHLO mail-ee0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751430AbaANPpj (ORCPT ); Tue, 14 Jan 2014 10:45:39 -0500 Received: by mail-ee0-f52.google.com with SMTP id e53so295116eek.39 for ; Tue, 14 Jan 2014 07:45:37 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=vFDtgoDrZMrmO/p0GYKgRNjwsFH7oz2UovpBF+k7kuA=; b=RdxoHo5BrBVMRKbjagYkEcr7FsdLpS6l5REGsM5bkte5GiUo54cNC0sRjqV0CX1TIW 72f5YzbSa0pRW9lH/CWh3qosCRqyFVSrqza75fZnJndSZoIYOsh2CB84YsfK9fGHwyla l3dntrKi7bU8PFQTQaj01ZTuFmksKUS7tNVSDU9j3/SPMfTIz5f+0ttKvgdATEndoSDP LWJ6nBYNcpXPy4a90BVP8e/J0NNXa7Xxf9EPvmyxNJWXc/qaLNBlqmHkRpPoNPbY61Gb euvTCBmslIq4DNCBEijg6UJbeS4Xvis7jqdhY12QSx1pbS2XjlsUmH/HP/bM59Ywmppx qLNA== X-Gm-Message-State: ALoCoQmN89ebb0TahEcqc511V8BsLlt36nhpYcgSpWn++UR/GrwIfVNgfXSZMVE5cIpQTpz4dCda X-Received: by 10.15.56.132 with SMTP id y4mr2936454eew.61.1389714337155; Tue, 14 Jan 2014 07:45:37 -0800 (PST) Received: from localhost (out.voltaire.com. [193.47.165.251]) by mx.google.com with ESMTPSA id z46sm2641863een.1.2014.01.14.07.45.36 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 14 Jan 2014 07:45:36 -0800 (PST) From: Eli Cohen To: roland@kernel.org Cc: linux-rdma@vger.kernel.org, davem@davemloft.net, ogerlitz@mellanox.com, Dan Carpenter Subject: [PATCH for-next 02/14] mlx5_core: Remove dead code Date: Tue, 14 Jan 2014 17:45:11 +0200 Message-Id: <1389714323-20130-3-git-send-email-eli@mellanox.com> X-Mailer: git-send-email 1.8.5.2 In-Reply-To: <1389714323-20130-1-git-send-email-eli@mellanox.com> References: <1389714323-20130-1-git-send-email-eli@mellanox.com> Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-7.0 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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 From: Dan Carpenter Remove leftover of debug code. Signed-off-by: Dan Carpenter --- drivers/net/ethernet/mellanox/mlx5/core/pagealloc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/pagealloc.c b/drivers/net/ethernet/mellanox/mlx5/core/pagealloc.c index 37b6ad1..c35c432 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/pagealloc.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/pagealloc.c @@ -192,10 +192,8 @@ static int alloc_4k(struct mlx5_core_dev *dev, u64 *addr) struct fw_page *fp; unsigned n; - if (list_empty(&dev->priv.free_list)) { + if (list_empty(&dev->priv.free_list)) return -ENOMEM; - mlx5_core_warn(dev, "\n"); - } fp = list_entry(dev->priv.free_list.next, struct fw_page, list); n = find_first_bit(&fp->bitmask, 8 * sizeof(fp->bitmask));