From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pd0-f180.google.com (mail-pd0-f180.google.com [209.85.192.180]) by dpdk.org (Postfix) with ESMTP id B0817C4FA for ; Tue, 14 Apr 2015 00:11:08 +0200 (CEST) Received: by pdbqd1 with SMTP id qd1so8445709pdb.2 for ; Mon, 13 Apr 2015 15:11:08 -0700 (PDT) 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=O3+nvFmY913l3aBPaOuqdWTNcuAGHWdGgaav9QKiMp4=; b=AFcOkqry9TtrdWj5jKNptoFe55B0+fnEjqTCRDR3rt60MYrHUnuYV8n2X2j2Apwxaj W8q2iHYzcjzUO+8ibpPFl0tY7A45MmoKTpzYXE0vFo/vfViIPlvrv9U1YKk6QEtWAApb RpCi0hijfrboDgibFR9Yt5vlHVB6Iyw+59yB+2kvkNOdPy9OvVgeoJ7XdTlHAla/nKcQ faQR9sbf6BVnwmi6FhOM6BpVf3CkUxdSErf6ix2E5bW2XKlYdcHxQ5IjV2EvZ/Z2xxH7 7hqxDlrrkXsu/z6m8R80M754zrHe/vjKeWlEgINZa+EJnSZyzYSEJrMq5PTNDLNSjHj5 wrxg== X-Gm-Message-State: ALoCoQlsdT/r7WP3cO8PA/5BQeHoLoKDFlQ6W+qjHUm2vNE6sIhPnlroluKDKtLbfeYjQqcnpOL/ X-Received: by 10.70.5.68 with SMTP id q4mr30767488pdq.9.1428963068128; Mon, 13 Apr 2015 15:11:08 -0700 (PDT) Received: from urahara.home.lan (static-50-53-82-155.bvtn.or.frontiernet.net. [50.53.82.155]) by mx.google.com with ESMTPSA id dk5sm8255847pdb.88.2015.04.13.15.11.07 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 13 Apr 2015 15:11:07 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Date: Mon, 13 Apr 2015 15:11:10 -0700 Message-Id: <1428963071-4226-2-git-send-email-stephen@networkplumber.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1428963071-4226-1-git-send-email-stephen@networkplumber.org> References: <1428963071-4226-1-git-send-email-stephen@networkplumber.org> Subject: [dpdk-dev] [PATCH 1/2] pci: cleanup whitespace X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Apr 2015 22:11:09 -0000 Fix whitespace errors reported by checkpatch, including missing space around operators and places where tab should be used instead of space. Signed-off-by: Stephen Hemminger --- lib/librte_eal/linuxapp/eal/eal_pci.c | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/lib/librte_eal/linuxapp/eal/eal_pci.c b/lib/librte_eal/linuxapp/eal/eal_pci.c index 9cb0ffd..c98a778 100644 --- a/lib/librte_eal/linuxapp/eal/eal_pci.c +++ b/lib/librte_eal/linuxapp/eal/eal_pci.c @@ -68,22 +68,22 @@ pci_unbind_kernel_driver(struct rte_pci_device *dev) /* open /sys/bus/pci/devices/AAAA:BB:CC.D/driver */ snprintf(filename, sizeof(filename), - SYSFS_PCI_DEVICES "/" PCI_PRI_FMT "/driver/unbind", - loc->domain, loc->bus, loc->devid, loc->function); + SYSFS_PCI_DEVICES "/" PCI_PRI_FMT "/driver/unbind", + loc->domain, loc->bus, loc->devid, loc->function); f = fopen(filename, "w"); if (f == NULL) /* device was not bound */ return 0; n = snprintf(buf, sizeof(buf), PCI_PRI_FMT "\n", - loc->domain, loc->bus, loc->devid, loc->function); + loc->domain, loc->bus, loc->devid, loc->function); if ((n < 0) || (n >= (int)sizeof(buf))) { RTE_LOG(ERR, EAL, "%s(): snprintf failed\n", __func__); goto error; } if (fwrite(buf, n, 1, f) == 0) { RTE_LOG(ERR, EAL, "%s(): could not write to %s\n", __func__, - filename); + filename); goto error; } @@ -205,8 +205,7 @@ pci_parse_sysfs_resource(const char *filename, struct rte_pci_device *dev) return -1; } - for (i = 0; idrv_flags & RTE_PCI_DRV_FORCE_UNBIND && - rte_eal_process_type() == RTE_PROC_PRIMARY) { + rte_eal_process_type() == RTE_PROC_PRIMARY) { /* unbind current driver */ if (pci_unbind_kernel_driver(dev) < 0) return -1; -- 2.1.4