mirror of
https://github.com/torvalds/linux.git
synced 2026-07-30 19:21:28 +02:00
net: qrtr: ns: Return 0 if server port is not present
When a del client message is received from remote, the corresponding server port is deleted. And then, a del server message is announced for this server. As part of handling this message, ns will try to delete this server port again and returns a -ENOENT error. Return value from server_del is returned back to qrtr_ns_worker and any non-zero value is printed to the serial port. This is flooding the serial port display. Returinng 0 in this case as this is not an error. Change-Id: Icd2594875f55313baa6e3313b6aa0c62facc5b2d Signed-off-by: Jay Jayanna <jayanna@codeaurora.org> Signed-off-by: Chris Lew <quic_clew@quicinc.com>
This commit is contained in:
parent
82b36ba3cb
commit
d8e12b91fa
|
|
@ -268,7 +268,7 @@ static int server_del(struct qrtr_node *node, unsigned int port)
|
|||
|
||||
srv = xa_load(&node->servers, port);
|
||||
if (!srv)
|
||||
return -ENOENT;
|
||||
return 0;
|
||||
|
||||
xa_erase(&node->servers, port);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user