Skip to contentSkip to conversation

Security: Fix some coding styles in security/keys/keyring.c

PATCH In review [email protected] 3 participants 3 messages Mar 4, 2010 – Mar 8, 2010

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

PATCH 1/2 Security: Fix some coding styles in security/keys/keyring.c

Fix some coding styles in security/keys/keyring.c

---
 security/keys/keyring.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
security/keys/keyring.c +2 -4
index 8ec0274..d77a7ef 100644
@@ -168,12 +168,10 @@ static void keyring_describe(const struct key *keyring, struct seq_file *m)
 {
 	struct keyring_list *klist;
 
-	if (keyring->description) {
+	if (keyring->description)
 		seq_puts(m, keyring->description);
-	}
-	else {
+	else
 		seq_puts(m, "[anon]");
-	}
 
 	rcu_read_lock();
 	klist = rcu_dereference(keyring->payload.subscriptions);
Signature · 1 line
1.6.5.3
maintainer
#1 lore raw
Quoted 3 lines · On Thu, 4 Mar 2010, [email protected] wrote:

Fix some coding styles in security/keys/keyring.c

Applied to
git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/security-testing-2.6#next-queue

Note, there seems to be no patch 2/2.

Quoted 27 lines
---
 security/keys/keyring.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
security/keys/keyring.c +2 -4
index 8ec0274..d77a7ef 100644
@@ -168,12 +168,10 @@ static void keyring_describe(const struct key *keyring, struct seq_file *m)
 {
 	struct keyring_list *klist;
 
-	if (keyring->description) {
+	if (keyring->description)
 		seq_puts(m, keyring->description);
-	}
-	else {
+	else
 		seq_puts(m, "[anon]");
-	}
 
 	rcu_read_lock();
 	klist = rcu_dereference(keyring->payload.subscriptions);
Signature · 1 line
1.6.5.3
Signature · 2 lines
James Morris
<[email protected]>