lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:   Mon, 8 May 2017 09:58:53 +0200
From:   SF Markus Elfring <elfring@...rs.sourceforge.net>
To:     kernel-janitors@...r.kernel.org, "Ed L. Cashin" <ed.cashin@....org>
Cc:     LKML <linux-kernel@...r.kernel.org>
Subject: [PATCH 3/3] block-aoe: Add spaces for better code readability

From: Markus Elfring <elfring@...rs.sourceforge.net>
Date: Mon, 8 May 2017 09:35:25 +0200

The script "checkpatch.pl" pointed information out like the following.

CHECK: spaces preferred around that '-' (ctx:VxV)

Thus fix the affected source code place.

Signed-off-by: Markus Elfring <elfring@...rs.sourceforge.net>
---
 drivers/block/aoe/aoeblk.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/block/aoe/aoeblk.c b/drivers/block/aoe/aoeblk.c
index a52555984e73..66adb2fb66d3 100644
--- a/drivers/block/aoe/aoeblk.c
+++ b/drivers/block/aoe/aoeblk.c
@@ -87,10 +87,10 @@ static ssize_t aoedisk_show_netif(struct device *dev,
 	if (!*nd)
 		return snprintf(page, PAGE_SIZE, "none\n");
 	for (p = page; nd < ne; nd++)
-		p += snprintf(p, PAGE_SIZE - (p-page), "%s%s",
-			p == page ? "" : ",", (*nd)->name);
-	p += snprintf(p, PAGE_SIZE - (p-page), "\n");
-	return p-page;
+		p += snprintf(p, PAGE_SIZE - (p - page), "%s%s",
+			      p == page ? "" : ",", (*nd)->name);
+	p += snprintf(p, PAGE_SIZE - (p - page), "\n");
+	return p - page;
 }
 /* firmware version */
 static ssize_t aoedisk_show_fwver(struct device *dev,
-- 
2.12.2

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ