[PATCH] unix_diag: addtion of empty line

namratajanawade posted 1 patch 3 years, 1 month ago
net/unix/diag.c | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
[PATCH] unix_diag: addtion of empty line
Posted by namratajanawade 3 years, 1 month ago
Warning found by checkpatch.pl.
New empty line added  before return statement to improve readability

Signed-off-by: namratajanawade <namrata.janawade@gmail.com>
---
 net/unix/diag.c | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/net/unix/diag.c b/net/unix/diag.c
index 9ff64f9df1f3..feb79a43944e 100644
--- a/net/unix/diag.c
+++ b/net/unix/diag.c
@@ -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);
 }
 
-- 
2.25.1