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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux