Skip to contentSkip to conversation

nfsd: remove unneeded semicolon

PATCH In review [email protected] 2 participants 2 messages Nov 1, 2020 – Nov 2, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nfsd: remove unneeded semicolon

From: Tom Rix <[email protected]>

A semicolon is not needed after a switch statement.

---
 fs/nfsd/nfs4xdr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/nfsd/nfs4xdr.c +1 -1
index 259d5ad0e3f4..6020f0ff6795 100644
@@ -2558,7 +2558,7 @@ static u32 nfs4_file_type(umode_t mode)
 	case S_IFREG:	return NF4REG;
 	case S_IFSOCK:	return NF4SOCK;
 	default:	return NF4BAD;
-	};
+	}
 }
 
 static inline __be32
Signature · 1 line
2.18.1
#1 lore raw
Quoted 25 lines · On Nov 1, 2020, at 10:32 AM, [email protected] wrote:

From: Tom Rix <[email protected]>

A semicolon is not needed after a switch statement.

---
fs/nfsd/nfs4xdr.c | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
fs/nfsd/nfs4xdr.c +1 -1
index 259d5ad0e3f4..6020f0ff6795 100644
@@ -2558,7 +2558,7 @@ static u32 nfs4_file_type(umode_t mode)
 	case S_IFREG:	return NF4REG;
 	case S_IFSOCK:	return NF4SOCK;
 	default:	return NF4BAD;
-	};
+	}
 }
 
Quoted 4 lines

static inline __be32

Signature · 1 line
2.18.1

I can take this for 5.11.

--
Chuck Lever