diff options
Diffstat (limited to 'net/mctp')
-rw-r--r-- | net/mctp/device.c | 2 | ||||
-rw-r--r-- | net/mctp/route.c | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/net/mctp/device.c b/net/mctp/device.c index b754c31162b1..da13444c632b 100644 --- a/net/mctp/device.c +++ b/net/mctp/device.c @@ -120,7 +120,7 @@ static int mctp_dump_addrinfo(struct sk_buff *skb, struct netlink_callback *cb) struct ifaddrmsg *hdr; struct mctp_dev *mdev; int ifindex; - int idx, rc; + int idx = 0, rc; hdr = nlmsg_data(cb->nlh); // filter by ifindex if requested diff --git a/net/mctp/route.c b/net/mctp/route.c index 5078ce3315cf..d5e7db83fe9d 100644 --- a/net/mctp/route.c +++ b/net/mctp/route.c @@ -456,7 +456,6 @@ static int mctp_route_input(struct mctp_route *route, struct sk_buff *skb) * the reassembly/response key */ if (!rc && flags & MCTP_HDR_FLAG_EOM) { - msk = container_of(key->sk, struct mctp_sock, sk); sock_queue_rcv_skb(key->sk, key->reasm_head); key->reasm_head = NULL; __mctp_key_done_in(key, net, f, MCTP_TRACE_KEY_REPLIED); |