]> git.baikalelectronics.ru Git - kernel.git/commit
vxlan: fix duplicated and wrong error messages
authorJiri Benc <jbenc@redhat.com>
Fri, 2 Sep 2016 11:37:12 +0000 (13:37 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 4 Sep 2016 18:42:56 +0000 (11:42 -0700)
commita0c86967df2ebb0b159fede01af31ec98ecf713c
tree49b85f27db9f38296be58675bcd84e623894276b
parent97adb5a0f4d9d1b377f007196c77399f4bed142e
vxlan: fix duplicated and wrong error messages

vxlan_dev_configure outputs error messages before returning, no need to
print again the same mesages in vxlan_newlink. Also, vxlan_dev_configure may
return a particular error code for a different reason than vxlan_newlink
thinks.

Move the remaining error messages into vxlan_dev_configure and let
vxlan_newlink just pass on the error code.

Signed-off-by: Jiri Benc <jbenc@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c