]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
tipc: fix htmldoc and smatch warnings
authorJon Maloy <jmaloy@redhat.com>
Mon, 29 Mar 2021 17:17:31 +0000 (13:17 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Mar 2021 23:28:50 +0000 (16:28 -0700)
We fix a warning from the htmldoc tool and an indentation error reported
by smatch. There are no functional changes in this commit.

Signed-off-by: Jon Maloy <jmaloy@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/socket.c
net/tipc/subscr.h

index 117a472a8e61ce548ba34a4f7de2455628b14a52..f21162aa0cf7982cc608aa4b5342c6192cf1a607 100644 (file)
@@ -1450,7 +1450,7 @@ static int __tipc_sendmsg(struct socket *sock, struct msghdr *m, size_t dlen)
                ua = (struct tipc_uaddr *)&tsk->peer;
                if (!syn && ua->family != AF_TIPC)
                        return -EDESTADDRREQ;
-                atype = ua->addrtype;
+               atype = ua->addrtype;
        }
 
        if (unlikely(syn)) {
index ddea6554ec467248ea7fc99fa9e4b022d7642ffe..60b877531b668157c7c7ac5aa3bdd549af9240ce 100644 (file)
@@ -49,12 +49,13 @@ struct tipc_conn;
 
 /**
  * struct tipc_subscription - TIPC network topology subscription object
+ * @s: host-endian copy of the user subscription
+ * @evt: template for events generated by subscription
  * @kref: reference count for this subscription
  * @net: network namespace associated with subscription
  * @timer: timer governing subscription duration (optional)
  * @service_list: adjacent subscriptions in name sequence's subscription list
  * @sub_list: adjacent subscriptions in subscriber's subscription list
- * @evt: template for events generated by subscription
  * @conid: connection identifier of topology server
  * @inactive: true if this subscription is inactive
  * @lock: serialize up/down and timer events