Skip to contentSkip to conversation

unix_diag: addtion of empty line

PATCH New namratajanawade 1 participant 1 message Mar 16, 2021

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

PATCH 1/1 unix_diag: addtion of empty line

Warning found by checkpatch.pl.
New empty line added before return statement to improve readability

---
 net/unix/diag.c | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)
net/unix/diag.c +6 -5
index 9ff64f9df1f3..feb79a43944e 100644
@@ -78,11 +78,11 @@ static int sk_diag_dump_icons(struct sock *sk, struct sk_buff *nlskb)
 			struct sock *req, *peer;
 
 			req = skb->sk;
-			/*
-			 * The state lock is outer for the same sk's
-			 * queue lock. With the other's queue locked it's
-			 * OK to lock the state.
-			 */
+			 /*
+			  * The state lock is outer for the same sk's
+			  * queue lock. With the other's queue locked it's
+			  * OK to lock the state.
+			  */
 			unix_state_lock_nested(req);
 			peer = unix_sk(req)->peer;
 			buf[i++] = (peer ? sock_i_ino(peer) : 0);
@@ -116,6 +116,7 @@ static int sk_diag_show_rqlen(struct sock *sk, struct sk_buff *nlskb)
 static int sk_diag_dump_uid(struct sock *sk, struct sk_buff *nlskb)
 {
 	uid_t uid = from_kuid_munged(sk_user_ns(nlskb->sk), sock_i_uid(sk));
+
 	return nla_put(nlskb, UNIX_DIAG_UID, sizeof(uid_t), &uid);
 }
 
Signature · 1 line
2.25.1