]> git.baikalelectronics.ru Git - kernel.git/commit
net: caif: remove ineffective check
authorPan Bian <bianpan2016@163.com>
Sun, 4 Dec 2016 04:15:44 +0000 (12:15 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Dec 2016 19:48:48 +0000 (14:48 -0500)
commit56351efa479244b3def0f16eea5b5d5642249c8d
tree2688a8e811b47fff31d7c5ed42e814679b52c8f3
parentd852adc6d36a3ebb8a8626f3af22d3eccaef72df
net: caif: remove ineffective check

The check of the return value of sock_register() is ineffective.
"if(!err)" seems to be a typo. It is better to propagate the error code
to the callers of caif_sktinit_module(). This patch removes the check
statment and directly returns the result of sock_register().

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=188751
Signed-off-by: Pan Bian <bianpan2016@163.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/caif/caif_socket.c