tools/xenstored: Remove redundant check in socket_can_process()
PATCH 1/1 tools/xenstored: Remove redundant check in socket_can_process()
From: Julien Grall <[email protected]>
Commit 3adfb50315d9 ("tools/xenstored: Introduce a wrapper for conn->funcs->can_{read, write}") consolidated the check !conn->is_ignored in two new wrappers.
This means the check in socket_can_process() is now redundant. In fact it should have been removed in orignal commit (as it was done for the domain helpers).
--- tools/xenstore/xenstored_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/xenstore/xenstored_core.c +1 -1
@@ -1752,7 +1752,7 @@ static bool socket_can_process(struct connection *conn, int mask)return false; } -return (fds[conn->pollfd_idx].revents & mask) && !conn->is_ignored; +return (fds[conn->pollfd_idx].revents & mask); }static bool socket_can_write (struct connection *conn)
Signature · 1 line
2.17.1
Quoted 6 lines · Julien Grall
From: Julien Grall <[email protected]>
Commit
3adfb50315d9("tools/xenstored: Introduce a wrapper for conn->funcs->can_{read, write}") consolidated the check !conn->is_ignored in two new wrappers.
Quoted 6 lines
This means the check in
socket_can_process()is now redundant. In fact it should have been removed in orignal commit (as it was done for the domain helpers).Reported-by Raphael Ning <[email protected]Signed-off-by Julien Grall <[email protected]>
Juergen
Hi Juergen,
Quoted 7 lines · Juergen Gross
Quoted 6 lines · Julien Grall
From: Julien Grall <[email protected]>
Commit
3adfb50315d9("tools/xenstored: Introduce a wrapper for conn->funcs->can_{read, write}") consolidated the check !conn->is_ignored in two new wrappers.
Quoted 8 lines
Quoted 6 lines
This means the check in
socket_can_process()is now redundant. In fact it should have been removed in orignal commit (as it was done for the domain helpers).Reported-by Raphael Ning <[email protected]Signed-off-by Julien Grall <[email protected]>Reviewed-by Juergen Gross <[email protected]>
Thanks! Committed.
Cheers,
Signature · 1 line
Julien Grall