mirror of
https://github.com/clearlinux/graphene.git
synced 2026-09-06 22:01:29 +00:00
[LibOS] Simplify condition expression
`polls + npolls` is less confusing and simpler than `&polls[npolls]`. Signed-off-by: Gary <gang1.wang@intel.com>
This commit is contained in:
@@ -126,7 +126,7 @@ static int __do_poll (int npolls, struct poll_handle * polls,
|
||||
|
||||
lock(map->lock);
|
||||
|
||||
for (p = polls ; p < &polls[npolls] ; p++) {
|
||||
for (p = polls ; p < polls + npolls ; p++) {
|
||||
bool do_r = p->flags & DO_R;
|
||||
bool do_w = p->flags & DO_W;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user