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>] [day] [month] [year] [list]
Date:   Fri, 13 Oct 2023 14:18:36 +0800 (GMT+08:00)
From:   chenguohua@...i.cn
To:     chuck.lever@...cle.com, jlayton@...nel.org, neilb@...e.de,
        kolga@...app.com, Dai.Ngo@...cle.com, tom@...pey.com
Cc:     linux-nfs@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH] NFSD: Clean up errors in nfssvc.c

Fix the following errors reported by checkpatch:

ERROR: space required before the open parenthesis '('
ERROR: do not initialise statics to 0

Signed-off-by: GuoHua Cheng <chenguohua@...i.cn>
---
 fs/nfsd/nfssvc.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/fs/nfsd/nfssvc.c b/fs/nfsd/nfssvc.c
index ce273c409ab6..6aeed0a39a87 100644
--- a/fs/nfsd/nfssvc.c
+++ b/fs/nfsd/nfssvc.c
@@ -208,7 +208,7 @@ int nfsd_vers(struct nfsd_net *nn, int vers, enum vers_op change)
 {
 	if (vers < NFSD_MINVERS || vers >= NFSD_NRVERS)
 		return 0;
-	switch(change) {
+	switch (change) {
 	case NFSD_SET:
 		if (nn->nfsd_versions)
 			nn->nfsd_versions[vers] = nfsd_support_version(vers);
@@ -246,7 +246,7 @@ int nfsd_minorversion(struct nfsd_net *nn, u32 minorversion, enum vers_op change
 	    change != NFSD_AVAIL)
 		return -1;
 
-	switch(change) {
+	switch (change) {
 	case NFSD_SET:
 		if (nn->nfsd4_minorversions) {
 			nfsd_vers(nn, 4, NFSD_SET);
@@ -310,7 +310,7 @@ static int nfsd_init_socks(struct net *net, const struct cred *cred)
 	return 0;
 }
 
-static int nfsd_users = 0;
+static int nfsd_users;
 
 static int nfsd_startup_generic(void)
 {
-- 
2.17.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ