Commit 05726aca authored by Dong Fang's avatar Dong Fang Committed by Miklos Szeredi

fuse: use list_for_each_entry() for list traversing

Signed-off-by: default avatarMiklos Szeredi <mszeredi@suse.cz>
parent efeb9e60
...@@ -1765,11 +1765,9 @@ static int fuse_notify(struct fuse_conn *fc, enum fuse_notify_code code, ...@@ -1765,11 +1765,9 @@ static int fuse_notify(struct fuse_conn *fc, enum fuse_notify_code code,
/* Look up request on processing list by unique ID */ /* Look up request on processing list by unique ID */
static struct fuse_req *request_find(struct fuse_conn *fc, u64 unique) static struct fuse_req *request_find(struct fuse_conn *fc, u64 unique)
{ {
struct list_head *entry; struct fuse_req *req;
list_for_each(entry, &fc->processing) { list_for_each_entry(req, &fc->processing, list) {
struct fuse_req *req;
req = list_entry(entry, struct fuse_req, list);
if (req->in.h.unique == unique || req->intr_unique == unique) if (req->in.h.unique == unique || req->intr_unique == unique)
return req; return req;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment