diff options
author | Todd Poynor <toddpoynor@google.com> | 2018-07-19 20:49:14 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-07-21 08:50:35 +0200 |
commit | 40eb35023179e90b123f8c4b0bc5e1a412ff2d21 (patch) | |
tree | a597cbae6c533e2008007462b3c5ea8435228d00 /drivers/staging/gasket/gasket_core.c | |
parent | fd5d76ab69a565ebcab94f11f185ea3dc5588249 (diff) |
staging: gasket: remove extra parens in gasket_write_mappable_regions
Remove unneeded parentheses around subexpressions.
Reported-by: Guenter Roeck <groeck@chromium.org>
Signed-off-by: Simon Que <sque@chromium.org>
Signed-off-by: Todd Poynor <toddpoynor@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/gasket/gasket_core.c')
-rw-r--r-- | drivers/staging/gasket/gasket_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/gasket/gasket_core.c b/drivers/staging/gasket/gasket_core.c index ae5febec8844..ba48a379b0ad 100644 --- a/drivers/staging/gasket/gasket_core.c +++ b/drivers/staging/gasket/gasket_core.c @@ -1889,7 +1889,7 @@ static ssize_t gasket_write_mappable_regions( if (bar_desc.permissions == GASKET_NOMAP) return 0; for (i = 0; - (i < bar_desc.num_mappable_regions) && (total_written < PAGE_SIZE); + i < bar_desc.num_mappable_regions && total_written < PAGE_SIZE; i++) { min_addr = bar_desc.mappable_regions[i].start - driver_desc->legacy_mmap_address_offset; |