OSDN Git Service

pktgen: Remove redundant clone_skb override
authorNick Richardson <richardsonnick@google.com>
Tue, 3 Aug 2021 16:27:35 +0000 (16:27 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Aug 2021 11:54:09 +0000 (12:54 +0100)
commitc2eecaa193ff1e516a1b389637169ae86a6fa867
tree2f9ed53ade241ca79bada59c7699e4c42e1ef625
parent773bda96492153e11d21eb63ac814669b51fc701
pktgen: Remove redundant clone_skb override

When the netif_receive xmit_mode is set, a line is supposed to set
clone_skb to a default 0 value. This line is made redundant due to a
preceding line that checks if clone_skb is more than zero and returns
-ENOTSUPP.

Overriding clone_skb to 0 does not make any difference to the behavior
because if it was positive we return error. So it can be either 0 or
negative, and in both cases the behavior is the same.

Remove redundant line that sets clone_skb to zero.

Signed-off-by: Nick Richardson <richardsonnick@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/pktgen.c