From patchwork Wed Mar 14 18:12:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Rosenstock X-Patchwork-Id: 10283211 X-Patchwork-Delegate: ira.weiny@intel.com 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 95B47602BD for ; Wed, 14 Mar 2018 18:13:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 85A8F2851E for ; Wed, 14 Mar 2018 18:13:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7A47F28574; Wed, 14 Mar 2018 18:13: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 C8B352851E for ; Wed, 14 Mar 2018 18:13:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932147AbeCNSM5 (ORCPT ); Wed, 14 Mar 2018 14:12:57 -0400 Received: from mail-qt0-f195.google.com ([209.85.216.195]:46980 "EHLO mail-qt0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751430AbeCNSMk (ORCPT ); Wed, 14 Mar 2018 14:12:40 -0400 Received: by mail-qt0-f195.google.com with SMTP id m13so4413104qtg.13 for ; Wed, 14 Mar 2018 11:12:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dev-mellanox-co-il.20150623.gappssmtp.com; s=20150623; h=to:cc:from:subject:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=CCLHW6BnAO0/u2gH/Dn7J+a3xl2Fm0AGFp/x7dRSaLU=; b=N5mXMS3/hc56YsCOvvktcByMsnKeQnFbaJXwJ25cIAjEOAKamDtzBJlcdHL5pOVpoX rvDjGjABsZrG3mOPotAnxr6b6FHxwqvWUlYxv0nolr7SIlDlS5/RQoM0/G0PNl3US48v +UTnI76stx6FxaHQruk6uBcXzoLCu8TZT5MeaOMrJEVCk2LqWIK8g4WQMA8BrkHBFHHy iOrCqK2IWReNhMRWiOdbV/Yc1Pm0YPcm2hk1chDkMJfQkhNBW9X8G1lZk6YbnGJF0maM oaDincxTfXHNa48mQ6shHNzZXUK6rOHAKS7xKJFaelJAWPbalJfKgkFtT+Lt0480qCCB pClQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:cc:from:subject:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=CCLHW6BnAO0/u2gH/Dn7J+a3xl2Fm0AGFp/x7dRSaLU=; b=udFBlekofd2NTQeE5uO6NUwA4nTeGoLFIG+FaGEeAgMMQVJnG3WTxKsP8AlUjTlTEo v8ZZfCjiXlruSvvlCQx5Ta7Ly/gCt/amPuPYn05FNsbwjqaRfzAxyklSAw49utL9gNjo T6GJQC2YE+zK7hO301YrTylRJ5uQJnjklqXXd7ppvh8K0xZgT0deSzI+a13E8MSLPWoz 2UnsE+VJOyxsld4SZBBwEwwB9BmkpubrmAXI+i8xcxbfaX4i/vbMa7gr/d9C/trVrlaH 0TtYrL+gM1XWa2O8/qKmjPFTNdLLaTqimySt/1CrUuoifteg7QgiIovLZkK974AM9RU2 rU5w== X-Gm-Message-State: AElRT7Grg5zFNIlsqeqA8qIs12hFS0HbXIehBaNmNK8RKEinaioyDu3g Z+bRwS77WV6VErSqShJNr9+RoLuV X-Google-Smtp-Source: AG47ELuZsCHqeJGMuXGMWvtjyvWI5mn3NEcbxw4HHTvMD+q9yr+STbEpKbWQwZQnr/FY5Pd2nguo9A== X-Received: by 10.237.60.155 with SMTP id d27mr7319115qtf.210.1521051159407; Wed, 14 Mar 2018 11:12:39 -0700 (PDT) Received: from [192.168.1.183] (c-73-182-207-166.hsd1.ma.comcast.net. [73.182.207.166]) by smtp.googlemail.com with ESMTPSA id c52sm2478877qtc.89.2018.03.14.11.12.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Mar 2018 11:12:38 -0700 (PDT) To: "Weiny, Ira" Cc: "Coulter, Susan K" , "linux-rdma@vger.kernel.org" From: Hal Rosenstock Subject: [PATCH][TRIVIAL] infiniband-diags: Fix some formatting Message-ID: <8f5f7822-44ee-168b-85aa-399ae3e09c90@dev.mellanox.co.il> Date: Wed, 14 Mar 2018 14:12:37 -0400 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 Content-Language: en-US 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 Use leading tabs rather than leading spaces Introduced in: commit 2ffe4ec09f0df9b4b4a80f9d6292fabebab0e5c9 Added check for successful strdup of node_name_map_file Signed-off-by: Hal Rosenstock --- src/dump_fts.c | 4 ++-- src/iblinkinfo.c | 4 ++-- src/ibnetdiscover.c | 4 ++-- src/ibqueryerrors.c | 4 ++-- src/ibroute.c | 4 ++-- src/ibtracert.c | 4 ++-- src/saquery.c | 4 ++-- src/smpquery.c | 4 ++-- 8 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/dump_fts.c b/src/dump_fts.c index 932fc24..20abd24 100644 --- a/src/dump_fts.c +++ b/src/dump_fts.c @@ -408,8 +408,8 @@ static int process_opt(void *context, int ch, char *optarg) break; case 1: node_name_map_file = strdup(optarg); - if (node_name_map_file == NULL) - IBEXIT("out of memory, strdup for node_name_map_file name failed"); + if (node_name_map_file == NULL) + IBEXIT("out of memory, strdup for node_name_map_file name failed"); break; default: return -1; diff --git a/src/iblinkinfo.c b/src/iblinkinfo.c index 384d489..deccb09 100644 --- a/src/iblinkinfo.c +++ b/src/iblinkinfo.c @@ -512,8 +512,8 @@ static int process_opt(void *context, int ch, char *optarg) switch (ch) { case 1: node_name_map_file = strdup(optarg); - if (node_name_map_file == NULL) - IBEXIT("out of memory, strdup for node_name_map_file name failed"); + if (node_name_map_file == NULL) + IBEXIT("out of memory, strdup for node_name_map_file name failed"); break; case 2: load_cache_file = strdup(optarg); diff --git a/src/ibnetdiscover.c b/src/ibnetdiscover.c index ef0d7a0..0eef703 100644 --- a/src/ibnetdiscover.c +++ b/src/ibnetdiscover.c @@ -995,8 +995,8 @@ static int process_opt(void *context, int ch, char *optarg) switch (ch) { case 1: node_name_map_file = strdup(optarg); - if (node_name_map_file == NULL) - IBEXIT("out of memory, strdup for node_name_map_file name failed"); + if (node_name_map_file == NULL) + IBEXIT("out of memory, strdup for node_name_map_file name failed"); break; case 2: cache_file = strdup(optarg); diff --git a/src/ibqueryerrors.c b/src/ibqueryerrors.c index 5e49522..43b062a 100644 --- a/src/ibqueryerrors.c +++ b/src/ibqueryerrors.c @@ -909,8 +909,8 @@ static int process_opt(void *context, int ch, char *optarg) break; case 1: node_name_map_file = strdup(optarg); - if (node_name_map_file == NULL) - IBEXIT("out of memory, strdup for node_name_map_file name failed"); + if (node_name_map_file == NULL) + IBEXIT("out of memory, strdup for node_name_map_file name failed"); break; case 2: data_counters++; diff --git a/src/ibroute.c b/src/ibroute.c index 8c165e6..2514073 100644 --- a/src/ibroute.c +++ b/src/ibroute.c @@ -408,8 +408,8 @@ static int process_opt(void *context, int ch, char *optarg) break; case 1: node_name_map_file = strdup(optarg); - if (node_name_map_file == NULL) - IBEXIT("out of memory, strdup for node_name_map_file name failed"); + if (node_name_map_file == NULL) + IBEXIT("out of memory, strdup for node_name_map_file name failed"); break; default: return -1; diff --git a/src/ibtracert.c b/src/ibtracert.c index 86816bf..1baeb5b 100644 --- a/src/ibtracert.c +++ b/src/ibtracert.c @@ -759,8 +759,8 @@ static int process_opt(void *context, int ch, char *optarg) switch (ch) { case 1: node_name_map_file = strdup(optarg); - if (node_name_map_file == NULL) - IBEXIT("out of memory, strdup for node_name_map_file name failed"); + if (node_name_map_file == NULL) + IBEXIT("out of memory, strdup for node_name_map_file name failed"); break; case 'm': multicast++; diff --git a/src/saquery.c b/src/saquery.c index 03fc779..1ce2f23 100644 --- a/src/saquery.c +++ b/src/saquery.c @@ -1555,8 +1555,8 @@ static int process_opt(void *context, int ch, char *optarg) break; case 3: node_name_map_file = strdup(optarg); - if (node_name_map_file == NULL) - IBEXIT("out of memory, strdup for node_name_map_file name failed"); + if (node_name_map_file == NULL) + IBEXIT("out of memory, strdup for node_name_map_file name failed"); break; case 4: if (!isxdigit(*optarg) && !(optarg = getpass("SM_Key: "))) { diff --git a/src/smpquery.c b/src/smpquery.c index 3bcc984..37461b8 100644 --- a/src/smpquery.c +++ b/src/smpquery.c @@ -416,8 +416,8 @@ static int process_opt(void *context, int ch, char *optarg) switch (ch) { case 1: node_name_map_file = strdup(optarg); - if (node_name_map_file == NULL) - IBEXIT("out of memory, strdup for node_name_map_file name failed"); + if (node_name_map_file == NULL) + IBEXIT("out of memory, strdup for node_name_map_file name failed"); break; case 'c': ibd_dest_type = IB_DEST_DRSLID;