ping: remove pr_err from ping_lookup
Xin Long authored
As Jakub noticed, prints should be avoided on the datapath.
Also, as packets would never come to the else branch in
ping_lookup(), remove pr_err() from ping_lookup().

Fixes: 35a79e64

 ("ping: fix the dif and sdif check in ping_lookup")
Reported-by: default avatarJakub Kicinski <kuba@kernel.org>
Signed-off-by: default avatarXin Long <lucien.xin@gmail.com>
Link: https://lore.kernel.org/r/1ef3f2fcd31bd681a193b1fcf235eee1603819bd.1645674068.git.lucien.xin@gmail.com

Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
cd33bdcb
Name Last commit Last update
..
6lowpan 6lowpan: iphc: Fix an off-by-one check of array index
802 net: 802: Use memset_startat() to clear struct fields
8021q vlan: move dev_put into vlan_dev_uninit
9p Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
appletalk net: socket: rework compat_ifreq_ioctl()
atm proc: remove PDE_DATA() completely
ax25 ax25: fix UAF bugs of net_device caused by rebinding operation
batman-adv Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
bluetooth proc: remove PDE_DATA() completely
bpf bpf: Add dummy BPF STRUCT_OPS for test purpose
bpfilter bpfilter: Specify the log level for the kmsg message
bridge net: bridge: multicast: notify switchdev driver whenever MC processing gets disabled
caif Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next
can net-timestamp: convert sk->sk_tskey to atomic_t
ceph libceph: optionally use bounce buffer on recv path in crc mode
core net: __pskb_pull_tail() & pskb_carve_frag_list() drop_monitor friends
dcb net: dcb: Return the correct errno code
dccp dccp: Inline dccp_listen_start().
decnet Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next
dns_resolver net: remove redundant 'depends on NET'
dsa net: dsa: fix panic when removing unoffloaded port from bridge
ethernet gro: remove rcu_read_lock/rcu_read_unlock from gro_complete handlers
ethtool ethtool: use phydev variable
hsr net: Write lock dev_base_lock without disabling bottom halves.
ieee802154 net: ieee802154: Return meaningful error codes from the netlink helpers
ife net: remove redundant 'depends on NET'
ipv4 ping: remove pr_err from ping_lookup
ipv6 ipv6: prevent a possible race condition with lifetimes
iucv net: Don't include filter.h from net/sock.h
kcm net: Don't include filter.h from net/sock.h
key net: Remove unnecessary variables
l2tp l2tp: add netns refcount tracker to l2tp_dfs_seq_data
l3mdev l3mdev: Correct function names in the kerneldoc comments
lapb net: lapb: Use list_for_each_entry() to simplify code in lapb_iface.c
llc sock: Use sock_owned_by_user_nocheck() instead of sk_lock.owned.
mac80211 mac80211: mlme: check for null after calling kmemdup
mac802154 mac802154: use dev_addr_set() - manual
mctp mctp: fix use after free
mpls net: mpls: Fix GCC 12 warning
mptcp mptcp: add mibs counter for ignored incoming options
ncsi all: replace find_next{,_zero}_bit with find_first{,_zero}_bit where appropriate
netfilter netfilter: nf_tables: fix memory leak during stateful obj update
netlabel lsm: security_task_getsecid_subj() -> security_current_getsecid_subj()
netlink net: Don't include filter.h from net/sock.h
netrom netrom: fix api breakage in nr_setsockopt()
nfc Merge tag 'net-5.17-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
nsh treewide: replace '---help---' in Kconfig files with 'help'
openvswitch openvswitch: Fix setting ipv6 fields causing hw csum failure
packet af_packet: fix data-race in packet_setsockopt / packet_setsockopt
phonet phonet/pep: refuse to enable an unbound pipe
psample
qrtr
rds
rfkill
rose
rxrpc
sched
sctp
smc
strparser
sunrpc
switchdev
tipc
tls
unix
vmw_vsock
wireless
x25
xdp
xfrm
Kconfig
Kconfig.debug
Makefile
compat.c
devres.c
socket.c
sysctl_net.c