[PATCH] NFSD: Clean up errors in nfssvc.c

From: chenguohua
Date: Fri Oct 13 2023 - 02:20:25 EST


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@xxxxxxx>
---
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