]> 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)
commit21e91fcda74646a5b4065b853b17765d29daf970
tree49b85f27db9f38296be58675bcd84e623894276b
parent4d06c6d91c5c877be3a1bf26baf700373528b4c6
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