mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2026-01-04 05:15:31 +00:00
mctp: remove duplicated assignment of pointer hdr
The pointer hdr is being initialized and also re-assigned with the
same value from the call to function mctp_hdr. Static analysis reports
that the initializated value is unused. The second assignment is
duplicated and can be removed.
Addresses-Coverity: ("Unused value").
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
372bbdd5bb
commit
df7ba0eb25
@ -170,7 +170,6 @@ static int mctp_recvmsg(struct socket *sock, struct msghdr *msg, size_t len,
|
||||
/* TODO: expand mctp_skb_cb for header fields? */
|
||||
struct mctp_hdr *hdr = mctp_hdr(skb);
|
||||
|
||||
hdr = mctp_hdr(skb);
|
||||
addr = msg->msg_name;
|
||||
addr->smctp_family = AF_MCTP;
|
||||
addr->smctp_network = cb->net;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user