From: Todd Poynor <toddpoynor@xxxxxxxxxx> Remove unneeded parentheses around subexpressions. Reported-by: Guenter Roeck <groeck@xxxxxxxxxxxx> Signed-off-by: Simon Que <sque@xxxxxxxxxxxx> Signed-off-by: Todd Poynor <toddpoynor@xxxxxxxxxx> --- drivers/staging/gasket/gasket_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/gasket/gasket_core.c b/drivers/staging/gasket/gasket_core.c index ae5febec8844c..ba48a379b0ada 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; -- 2.18.0.233.g985f88cf7e-goog _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel