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] [thread-next>] [day] [month] [year] [list]
Message-ID: <3e11edb7-519f-4cde-f22f-3c6bbdda536c@users.sourceforge.net>
Date:   Sat, 7 Jan 2017 20:55:23 +0100
From:   SF Markus Elfring <elfring@...rs.sourceforge.net>
To:     Maxim Levitsky <maximlevitsky@...il.com>,
        kernel-janitors@...r.kernel.org
Cc:     LKML <linux-kernel@...r.kernel.org>
Subject: [PATCH 3/9] memstick: Delete unwanted spaces behind three function
 parameters

From: Markus Elfring <elfring@...rs.sourceforge.net>
Date: Sat, 7 Jan 2017 18:54:25 +0100

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

ERROR: space prohibited before that ',' (ctx:WxW)

Thus fix the affected source code places.

Signed-off-by: Markus Elfring <elfring@...rs.sourceforge.net>
---
 drivers/memstick/core/ms_block.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/drivers/memstick/core/ms_block.c b/drivers/memstick/core/ms_block.c
index ec17885a5956..526e671a3435 100644
--- a/drivers/memstick/core/ms_block.c
+++ b/drivers/memstick/core/ms_block.c
@@ -194,7 +194,8 @@ static void msb_mark_block_unused(struct msb_data *msb, int pba)
 	int zone = msb_get_zone_from_pba(pba);
 
 	if (!test_bit(pba, msb->used_blocks_bitmap)) {
-		pr_err("BUG: attempt to mark already unused pba %d as unused" , pba);
+		pr_err("BUG: attempt to mark already unused pba %d as unused",
+		       pba);
 		msb->read_only = true;
 		return;
 	}
@@ -1551,7 +1552,7 @@ static int msb_cache_flush(struct msb_data *msb)
 	dbg_verbose("Flushing the write cache of pba %d (LBA %d)",
 						pba, msb->cache_block_lba);
 
-	sg_init_one(&sg, msb->cache , msb->block_size);
+	sg_init_one(&sg, msb->cache, msb->block_size);
 
 	/* Read all missing pages in cache */
 	for (page = 0; page < msb->pages_in_block; page++) {
@@ -1597,7 +1598,9 @@ static int msb_cache_flush(struct msb_data *msb)
 			dbg("marking page %d as containing damaged data",
 				page);
 			msb_set_overwrite_flag(msb,
-				pba , page, 0xFF & ~MEMSTICK_OV_PG_NORMAL);
+					       pba,
+					       page,
+					       0xFF & ~MEMSTICK_OV_PG_NORMAL);
 		}
 	}
 
-- 
2.11.0

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ