From patchwork Mon Mar 20 23:38:06 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dasaratharaman Chandramouli X-Patchwork-Id: 9635533 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E911760216 for ; Mon, 20 Mar 2017 23:44:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DC2A52768C for ; Mon, 20 Mar 2017 23:44:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D10E4277D9; Mon, 20 Mar 2017 23:44:14 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 663872793A for ; Mon, 20 Mar 2017 23:44:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755942AbdCTXoI (ORCPT ); Mon, 20 Mar 2017 19:44:08 -0400 Received: from mga04.intel.com ([192.55.52.120]:34412 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755951AbdCTXoH (ORCPT ); Mon, 20 Mar 2017 19:44:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=intel.com; i=@intel.com; q=dns/txt; s=intel; t=1490053447; x=1521589447; h=from:to:subject:date:message-id:in-reply-to:references; bh=O9BuIrz6J4gOCbywBfxAUwGkRsEvQi50a57fmV5uljE=; b=XrYTLbNWUgGhN8CwOZ0y9meCRr1KU7L3VOjphKPxlqmqaeRdzRsPoSf/ 3XSZLxs28LHOTYk/9SgP+0SUw3heqA==; Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Mar 2017 16:44:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.36,196,1486454400"; d="scan'208";a="79181709" Received: from phwtpriv01.ph.intel.com ([10.228.208.76]) by fmsmga006.fm.intel.com with ESMTP; 20 Mar 2017 16:44:06 -0700 From: Dasaratharaman Chandramouli To: Don Hiatt , Ira Weiny , Doug Ledford , linux-rdma Subject: [PATCH v2 3/7] IB/SA: Remove unwanted braces Date: Mon, 20 Mar 2017 19:38:06 -0400 Message-Id: <1490053090-32840-4-git-send-email-dasaratharaman.chandramouli@intel.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1490053090-32840-1-git-send-email-dasaratharaman.chandramouli@intel.com> References: <1490053090-32840-1-git-send-email-dasaratharaman.chandramouli@intel.com> Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This fixes a checkpatch issue. The fix is needed so that some of these functions can be moved around in the forthcoming patches Reviewed-by: Don Hiatt Reviewed-by: Ira Weiny Signed-off-by: Dasaratharaman Chandramouli --- drivers/infiniband/core/sa_query.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/infiniband/core/sa_query.c b/drivers/infiniband/core/sa_query.c index 8cfe636..b04b499 100644 --- a/drivers/infiniband/core/sa_query.c +++ b/drivers/infiniband/core/sa_query.c @@ -945,9 +945,8 @@ static void update_sm_ah(struct work_struct *work) } new_ah = kmalloc(sizeof(*new_ah), GFP_KERNEL); - if (!new_ah) { + if (!new_ah) return; - } kref_init(&new_ah->ref); new_ah->src_path_mask = (1 << port_attr.lmc) - 1;