From patchwork Tue May 5 11:01:39 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 6336871 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 CA0599F32B for ; Tue, 5 May 2015 11:01:50 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E30A72022D for ; Tue, 5 May 2015 11:01:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CCE94200F3 for ; Tue, 5 May 2015 11:01:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753014AbbEELBr (ORCPT ); Tue, 5 May 2015 07:01:47 -0400 Received: from mail-bl2on0064.outbound.protection.outlook.com ([65.55.169.64]:53158 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752441AbbEELBq (ORCPT ); Tue, 5 May 2015 07:01:46 -0400 Received: from DM2PR02MB286.namprd02.prod.outlook.com (10.141.55.146) by DM2PR02MB525.namprd02.prod.outlook.com (10.141.54.144) with Microsoft SMTP Server (TLS) id 15.1.154.19; Tue, 5 May 2015 11:01:44 +0000 Received: from CY1PR0201CA0036.namprd02.prod.outlook.com (25.163.30.174) by DM2PR02MB286.namprd02.prod.outlook.com (10.141.55.146) with Microsoft SMTP Server (TLS) id 15.1.154.19; Tue, 5 May 2015 11:01:43 +0000 Received: from BY2FFO11FD021.protection.gbl (2a01:111:f400:7c0c::157) by CY1PR0201CA0036.outlook.office365.com (2a01:111:e400:58b9::46) with Microsoft SMTP Server (TLS) id 15.1.154.19 via Frontend Transport; Tue, 5 May 2015 11:01:43 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.172) smtp.mailfrom=sandisk.com; vger.kernel.org; dkim=none (message not signed) header.d=none; Received-SPF: Pass (protection.outlook.com: domain of sandisk.com designates 63.163.107.172 as permitted sender) receiver=protection.outlook.com; client-ip=63.163.107.172; helo=milsmgep11.sandisk.com; Received: from milsmgep11.sandisk.com (63.163.107.172) by BY2FFO11FD021.mail.protection.outlook.com (10.1.15.210) with Microsoft SMTP Server id 15.1.160.8 via Frontend Transport; Tue, 5 May 2015 11:01:41 +0000 Received: from MILHUBIP03.sdcorp.global.sandisk.com ( [172.22.12.162]) by milsmgep11.sandisk.com (Symantec Messaging Gateway) with SMTP id 8E.9A.08453.513A8455; Tue, 5 May 2015 04:01:41 -0700 (PDT) Received: from milsmgip12.sandisk.com (10.177.8.100) by MILHUBIP03.sdcorp.global.sandisk.com (10.177.9.96) with Microsoft SMTP Server id 14.3.224.2; Tue, 5 May 2015 04:01:40 -0700 X-AuditID: ac160a68-f79df6d000002105-8a-5548a31549a6 Received: from [10.50.231.58] ( [10.177.8.100]) by milsmgip12.sandisk.com (Symantec Messaging Gateway) with SMTP id 41.25.04406.313A8455; Tue, 5 May 2015 04:01:40 -0700 (PDT) Message-ID: <5548A313.3080908@sandisk.com> Date: Tue, 5 May 2015 13:01:39 +0200 From: Bart Van Assche User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Doug Ledford CC: Pradeep Satyanarayana , linux-rdma Subject: [PATCH] IPoIB/CM: Fix indentation level X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrGLMWRmVeSWpSXmKPExsWyRoxnka7oYo9QgxU7OSxenv/AavHsUC+L xfe+HmYHZo8HhzazeLzfd5XN4/MmuQDmKC6blNSczLLUIn27BK6MZ89uMxU8ZK94u342awPj ZrYuRk4OCQETiUmXZjND2GISF+6tB4pzcQgJnGCUuLbiNTOEs51RYt7Nh6wwHYu3/Q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O6cNi45MyQl/Dc09eXr/M91qM4mQ717fJUZtv/3c7wtTj/m9bg3xme42TwZpq JZbijERDLeai4kQAWP3L7OEBAAA= X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:63.163.107.172; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(438002)(199003)(189002)(46102003)(106466001)(65956001)(47776003)(229853001)(110136002)(77096005)(36756003)(87936001)(5001960100002)(86362001)(64126003)(92566002)(23676002)(54356999)(80316001)(50466002)(77156002)(62966003)(19580395003)(50986999)(59896002)(33656002)(19580405001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR02MB286; H:milsmgep11.sandisk.com; FPR:; SPF:Pass; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:; SRVR:DM2PR02MB286; UriScan:; BCL:0; PCL:0; RULEID:; SRVR:DM2PR02MB525; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5005006)(3002001); SRVR:DM2PR02MB286; BCL:0; PCL:0; RULEID:; SRVR:DM2PR02MB286; X-Forefront-PRVS: 0567A15835 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 May 2015 11:01:41.4232 (UTC) X-MS-Exchange-CrossTenant-Id: fcd9ea9c-ae8c-460c-ab3c-3db42d7ac64d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=fcd9ea9c-ae8c-460c-ab3c-3db42d7ac64d; Ip=[63.163.107.172]; Helo=[milsmgep11.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR02MB286 X-OriginatorOrg: sandisk.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=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_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 See also patch "IPoIB/cm: Add connected mode support for devices without SRQs" (commit ID 68e995a29572). Detected by smatch. Signed-off-by: Bart Van Assche Cc: Pradeep Satyanarayana --- drivers/infiniband/ulp/ipoib/ipoib_cm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/infiniband/ulp/ipoib/ipoib_cm.c b/drivers/infiniband/ulp/ipoib/ipoib_cm.c index 56959ad..cf32a778 100644 --- a/drivers/infiniband/ulp/ipoib/ipoib_cm.c +++ b/drivers/infiniband/ulp/ipoib/ipoib_cm.c @@ -386,8 +386,8 @@ static int ipoib_cm_nonsrq_init_rx(struct net_device *dev, struct ib_cm_id *cm_i rx->rx_ring[i].mapping, GFP_KERNEL)) { ipoib_warn(priv, "failed to allocate receive buffer %d\n", i); - ret = -ENOMEM; - goto err_count; + ret = -ENOMEM; + goto err_count; } ret = ipoib_cm_post_receive_nonsrq(dev, rx, &t->wr, t->sge, i); if (ret) {