* [PATCH] NFSD: Clean up errors in nfssvc.c
@ 2023-10-13 6:18 chenguohua
0 siblings, 0 replies; only message in thread
From: chenguohua @ 2023-10-13 6:18 UTC (permalink / raw)
To: chuck.lever, jlayton, neilb, kolga, Dai.Ngo, tom; +Cc: linux-nfs, linux-kernel
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@jari.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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-10-13 6:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-13 6:18 [PATCH] NFSD: Clean up errors in nfssvc.c chenguohua
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®