]> git.baikalelectronics.ru Git - kernel.git/commit
mctp: remove duplicated assignment of pointer hdr
authorColin Ian King <colin.king@canonical.com>
Wed, 4 Aug 2021 12:15:30 +0000 (13:15 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Aug 2021 09:56:01 +0000 (10:56 +0100)
commitb6b1397dc2996ad5678d031e6b501c6a75ac4be1
tree23ea7f9f57a9dc4921953ae41f0ebd73bb16d65e
parentafc3c3dea3d041cb08fc5fb41146ccbf780c3747
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>
net/mctp/af_mctp.c