net/tipc: remove redundant variables 'tn' and 'oport'
Variables 'tn' and 'oport' are being assigned but are never used hence they are redundant and can be removed. Cleans up clang warnings: warning: variable 'oport' set but not used [-Wunused-but-set-variable] warning: variable 'tn' set but not used [-Wunused-but-set-variable] Signed-off-by: Colin Ian King <colin.king@canonical.com> Acked-by: Ying Xue <ying.xue@windriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
e5121207f0
commit
b053fcc4a1
@ -411,7 +411,6 @@ static int tipc_sk_sock_err(struct socket *sock, long *timeout)
|
|||||||
static int tipc_sk_create(struct net *net, struct socket *sock,
|
static int tipc_sk_create(struct net *net, struct socket *sock,
|
||||||
int protocol, int kern)
|
int protocol, int kern)
|
||||||
{
|
{
|
||||||
struct tipc_net *tn;
|
|
||||||
const struct proto_ops *ops;
|
const struct proto_ops *ops;
|
||||||
struct sock *sk;
|
struct sock *sk;
|
||||||
struct tipc_sock *tsk;
|
struct tipc_sock *tsk;
|
||||||
@ -446,7 +445,6 @@ static int tipc_sk_create(struct net *net, struct socket *sock,
|
|||||||
INIT_LIST_HEAD(&tsk->publications);
|
INIT_LIST_HEAD(&tsk->publications);
|
||||||
INIT_LIST_HEAD(&tsk->cong_links);
|
INIT_LIST_HEAD(&tsk->cong_links);
|
||||||
msg = &tsk->phdr;
|
msg = &tsk->phdr;
|
||||||
tn = net_generic(sock_net(sk), tipc_net_id);
|
|
||||||
|
|
||||||
/* Finish initializing socket data structures */
|
/* Finish initializing socket data structures */
|
||||||
sock->ops = ops;
|
sock->ops = ops;
|
||||||
@ -1117,7 +1115,7 @@ void tipc_sk_mcast_rcv(struct net *net, struct sk_buff_head *arrvq,
|
|||||||
u32 self = tipc_own_addr(net);
|
u32 self = tipc_own_addr(net);
|
||||||
u32 type, lower, upper, scope;
|
u32 type, lower, upper, scope;
|
||||||
struct sk_buff *skb, *_skb;
|
struct sk_buff *skb, *_skb;
|
||||||
u32 portid, oport, onode;
|
u32 portid, onode;
|
||||||
struct sk_buff_head tmpq;
|
struct sk_buff_head tmpq;
|
||||||
struct list_head dports;
|
struct list_head dports;
|
||||||
struct tipc_msg *hdr;
|
struct tipc_msg *hdr;
|
||||||
@ -1133,7 +1131,6 @@ void tipc_sk_mcast_rcv(struct net *net, struct sk_buff_head *arrvq,
|
|||||||
user = msg_user(hdr);
|
user = msg_user(hdr);
|
||||||
mtyp = msg_type(hdr);
|
mtyp = msg_type(hdr);
|
||||||
hlen = skb_headroom(skb) + msg_hdr_sz(hdr);
|
hlen = skb_headroom(skb) + msg_hdr_sz(hdr);
|
||||||
oport = msg_origport(hdr);
|
|
||||||
onode = msg_orignode(hdr);
|
onode = msg_orignode(hdr);
|
||||||
type = msg_nametype(hdr);
|
type = msg_nametype(hdr);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user