diff options
author | Miklos Szeredi <mszeredi@redhat.com> | 2020-07-14 14:45:41 +0200 |
---|---|---|
committer | Miklos Szeredi <mszeredi@redhat.com> | 2020-07-14 14:45:41 +0200 |
commit | 6ddf3af93e32b996cfc30477ea1509960d4ba669 (patch) | |
tree | 8583e700803dfb749470fd99c0286674e6660bf0 /net/rxrpc/conn_service.c | |
parent | b330966f79fb4fdc49183f58db113303695a750f (diff) |
fuse: clean up condition for writepage sending
fuse_writepages_fill uses following construction:
if (wpa && ap->num_pages &&
(A || B || C)) {
action;
} else if (wpa && D) {
if (E) {
the same action;
}
}
- ap->num_pages check is always true and can be removed
- "if" and "else if" calls the same action and can be merged.
Move checking A, B, C, D, E conditions to a helper, add comments.
Original-patch-by: Vasily Averin <vvs@virtuozzo.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'net/rxrpc/conn_service.c')
0 files changed, 0 insertions, 0 deletions