platform: goldfish: pipe: Remove reduntant casting
authorRoman Kiryanov <rkir@google.com>
Mon, 27 Aug 2018 18:23:07 +0000 (11:23 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Sep 2018 13:31:30 +0000 (15:31 +0200)
Casting to u32 is not required here.

Signed-off-by: Roman Kiryanov <rkir@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/platform/goldfish/goldfish_pipe.c

index e3c09ff..ff0e150 100644 (file)
@@ -828,7 +828,7 @@ static int goldfish_pipe_device_init(struct platform_device *pdev)
                      dev->base + PIPE_REG_SIGNAL_BUFFER,
                      dev->base + PIPE_REG_SIGNAL_BUFFER_HIGH);
 
-       writel((u32)MAX_SIGNALLED_PIPES,
+       writel(MAX_SIGNALLED_PIPES,
               dev->base + PIPE_REG_SIGNAL_BUFFER_COUNT);
 
        write_pa_addr(&dev->buffers->open_command_params,