mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-05 13:29:17 -04:00
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
fd5d76ab69
commit
40eb350231
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user