OSDN Git Service

gro: avoid checking for a failed search
authorRichard Gobert <richardbgobert@gmail.com>
Tue, 8 Nov 2022 12:33:28 +0000 (13:33 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 10 Nov 2022 10:26:47 +0000 (11:26 +0100)
commite081ecf084d31809242fb0b9f35484d5fb3a161a
tree5b73e23855bcc74fec754661018a4a47d5569287
parente29edc475f65ec439c468c85d3c81fac1d19ab61
gro: avoid checking for a failed search

After searching for a protocol handler in dev_gro_receive, checking for
failure is redundant. Skip the failure code after finding the
corresponding handler.

Suggested-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Richard Gobert <richardbgobert@gmail.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Link: https://lore.kernel.org/r/20221108123320.GA59373@debian
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/core/gro.c