vxlan_core: delete unnecessary condition
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 7 Mar 2022 12:57:36 +0000 (15:57 +0300)
committerJakub Kicinski <kuba@kernel.org>
Tue, 8 Mar 2022 05:47:46 +0000 (21:47 -0800)
commit8daf4e75fc09d6b0ca8fea0988959c99643aa8a8
treeca475915ff20c294d1272cfc596277f10d75e48d
parent72f00505f2d2eced9789e98ca081f8229f03b2ed
vxlan_core: delete unnecessary condition

The previous check handled the "if (!nh)" condition so we know "nh"
is non-NULL here.  Delete the check and pull the code in one tab.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Nikolay Aleksandrov <razor@blackwall.org>
Reviewed-by: Roopa Prabhu <roopa@nvidia.com>
Link: https://lore.kernel.org/r/20220307125735.GC16710@kili
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/vxlan/vxlan_core.c