diff options
| author | Lin Ma <[email protected]> | 2023-06-15 15:22:40 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2023-06-17 07:25:24 +0000 |
| commit | f60ce8a48b97eb970bfbec1f26c914b9017c4a46 (patch) | |
| tree | 02c1afbe6a61c19896968194c68ee34e4dbefecd /net/ipv4/tcp_output.c | |
| parent | netlink: specs: fixup openvswitch specs for code generation (diff) | |
| download | kernel-f60ce8a48b97eb970bfbec1f26c914b9017c4a46.tar.gz kernel-f60ce8a48b97eb970bfbec1f26c914b9017c4a46.zip | |
net: mctp: remove redundant RTN_UNICAST check
Current mctp_newroute() contains two exactly same check against
rtm->rtm_type
static int mctp_newroute(...)
{
...
if (rtm->rtm_type != RTN_UNICAST) { // (1)
NL_SET_ERR_MSG(extack, "rtm_type must be RTN_UNICAST");
return -EINVAL;
}
...
if (rtm->rtm_type != RTN_UNICAST) // (2)
return -EINVAL;
...
}
This commits removes the (2) check as it is redundant.
Signed-off-by: Lin Ma <[email protected]>
Reviewed-by: Pavan Chebbi <[email protected]>
Acked-by: Jeremy Kerr <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_output.c')
0 files changed, 0 insertions, 0 deletions
