From patchwork Tue Jan 19 09:11:24 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leon Romanovsky X-Patchwork-Id: 8059291 Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id C94799F6FA for ; Tue, 19 Jan 2016 09:11:40 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id F38AD2022A for ; Tue, 19 Jan 2016 09:11:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D8C0E203A1 for ; Tue, 19 Jan 2016 09:11:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932652AbcASJLh (ORCPT ); Tue, 19 Jan 2016 04:11:37 -0500 Received: from mail-wm0-f43.google.com ([74.125.82.43]:35981 "EHLO mail-wm0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932643AbcASJLe (ORCPT ); Tue, 19 Jan 2016 04:11:34 -0500 Received: by mail-wm0-f43.google.com with SMTP id l65so129297539wmf.1 for ; Tue, 19 Jan 2016 01:11:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leon-nu.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=m+cWcogd8eryDQ2fvbHiUK2nrIGxKw+WzsunxXD9bQc=; b=jrToShxIxLC+istLkMyyDE5rv2aPQ5JXoExIF38uzgRcS43KjKYrFuW4LAQOeMYB84 ZnChJhi2O1VXEloUxGDvdnMapNk+zI6znYQ7Sp0oaht67c93xJeGgzii4ja5I9ajwQFM tAcXkng1s/fVjEy3gcWTBGyiFkb9RM2mredQe765xRSDm+u1tU9wxIBsLIMD+T9XxtSi b5xwEaYvDJH9VYEq/1eZbpXabReh4WzI0+d4VwgiszDrVCaztfQ6iNjRxNVdHknQfOi/ fO5bK7ZjwW1EpLBfA3tOT/AyZcvMrVSrFhbNqPyKB21WhGce6DYDPx7smm83LciBq+Sq HPmQ== 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; bh=m+cWcogd8eryDQ2fvbHiUK2nrIGxKw+WzsunxXD9bQc=; b=VFuml0sP5J4INR68ACyBzejnZRejWGVx0Dv3Wx9XL3L23ZAqcZLlHRZbVt5RrtaxIU A11CXa9t0jgKonxDsjJ+ZOc+LDRhFzc+PhtHOIADtfqgu7WAbuc5Fz0fkP0b2HnoC+FE 2pyJs3NI4dul88FNZLaET9hfjOFMT/Z0fFh1rXpVVq7vlbMytLcMIhwInzIktEr4qbu4 HaCFj+vDU6DBWfJMXMmTPmIxgDN7AVDlxuCvHqcqSHGLgmXbz7Qm1PmXswiyW7SIq0v0 PmWvYvGJ4Mg/KKNBYJ2MJTLcBHY5X+4vd31XnZCh3m0VpbiXqOF+g0RYgbPDX5SUOxYp xfew== X-Gm-Message-State: AG10YORU5PbMixLC0cuLnYcRfsmMcM+3iKzW6b3guZy3oBMtoH38VNuHy/1zNfm78wHPxA== X-Received: by 10.194.188.100 with SMTP id fz4mr23865181wjc.126.1453194693263; Tue, 19 Jan 2016 01:11:33 -0800 (PST) Received: from localhost ([213.57.247.249]) by smtp.gmail.com with ESMTPSA id s129sm19343692wmf.18.2016.01.19.01.11.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Jan 2016 01:11:32 -0800 (PST) From: Leon Romanovsky To: dledford@redhat.com Cc: matanb@mellanox.com, linux-rdma@vger.kernel.org, Leon Romanovsky Subject: [PATCH] IB/mlx5: Delete locally redefined variable Date: Tue, 19 Jan 2016 11:11:24 +0200 Message-Id: <1453194684-1549-1-git-send-email-leon@leon.nu> X-Mailer: git-send-email 2.1.4 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,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: Leon Romanovsky Fix the following sparse warning: drivers/infiniband/hw/mlx5/main.c:1061:29: warning: symbol 'pfn' shadows an earlier one drivers/infiniband/hw/mlx5/main.c:1030:21: originally declared here Fixes: d69e3bcf7976 ('IB/mlx5: Mmap the HCA's core clock register to user-space') Signed-off-by: Leon Romanovsky --- drivers/infiniband/hw/mlx5/main.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/infiniband/hw/mlx5/main.c b/drivers/infiniband/hw/mlx5/main.c index 5e3d3aea35bc..5e997c0793d1 100644 --- a/drivers/infiniband/hw/mlx5/main.c +++ b/drivers/infiniband/hw/mlx5/main.c @@ -1057,9 +1057,6 @@ static int mlx5_ib_mmap(struct ib_ucontext *ibcontext, struct vm_area_struct *vm return -ENOSYS; case MLX5_IB_MMAP_CORE_CLOCK: - { - phys_addr_t pfn; - if (vma->vm_end - vma->vm_start != PAGE_SIZE) return -EINVAL; @@ -1082,7 +1079,6 @@ static int mlx5_ib_mmap(struct ib_ucontext *ibcontext, struct vm_area_struct *vm vma->vm_start, (unsigned long long)pfn << PAGE_SHIFT); break; - } default: return -EINVAL;