Skip to content
Commit 0ce779a9 authored by Miaohe Lin's avatar Miaohe Lin Committed by David S. Miller
Browse files

net: Avoid unnecessary inet_addr_type() call when addr is INADDR_ANY



We can avoid unnecessary inet_addr_type() call by check addr against
INADDR_ANY first.

Signed-off-by: default avatarMiaohe Lin <linmiaohe@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0316a211
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment