From: Todd Poynor <[email protected]>

gasket_alloc_coherent_memory() extra parentheses in statement.

Reported-by: Guenter Roeck <[email protected]>
Signed-off-by: Simon Que <[email protected]>
Signed-off-by: Todd Poynor <[email protected]>
---
 drivers/staging/gasket/gasket_page_table.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/gasket/gasket_page_table.c 
b/drivers/staging/gasket/gasket_page_table.c
index 617d602b8b447..9f8116112e0ac 100644
--- a/drivers/staging/gasket/gasket_page_table.c
+++ b/drivers/staging/gasket/gasket_page_table.c
@@ -1639,7 +1639,7 @@ int gasket_alloc_coherent_memory(struct gasket_dev 
*gasket_dev, u64 size,
        dma_addr_t handle;
        void *mem;
        int j;
-       unsigned int num_pages = (size + PAGE_SIZE - 1) / (PAGE_SIZE);
+       unsigned int num_pages = (size + PAGE_SIZE - 1) / PAGE_SIZE;
        const struct gasket_driver_desc *driver_desc =
                gasket_get_driver_desc(gasket_dev);
 
-- 
2.18.0.203.gfac676dfb9-goog

_______________________________________________
devel mailing list
[email protected]
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Reply via email to