OSDN Git Service

staging: gasket: remove unnecessary parens in page table code
authorTodd Poynor <toddpoynor@google.com>
Fri, 20 Jul 2018 03:49:12 +0000 (20:49 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 21 Jul 2018 06:50:35 +0000 (08:50 +0200)
gasket_alloc_coherent_memory() extra parentheses in statement.

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>
drivers/staging/gasket/gasket_page_table.c

index 617d602..9f81161 100644 (file)
@@ -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);