Commit 40eb3502 authored by Todd Poynor's avatar Todd Poynor Committed by Greg Kroah-Hartman
Browse files

staging: gasket: remove extra parens in gasket_write_mappable_regions



Remove unneeded parentheses around subexpressions.

Reported-by: default avatarGuenter Roeck <groeck@chromium.org>
Signed-off-by: default avatarSimon Que <sque@chromium.org>
Signed-off-by: default avatarTodd Poynor <toddpoynor@google.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent fd5d76ab
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;