]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
platform: goldfish: pipe: Remove redundant casting
authorRoman Kiryanov <rkir@google.com>
Wed, 3 Oct 2018 17:17:10 +0000 (10:17 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 Oct 2018 18:36:46 +0000 (20:36 +0200)
This casting is not required.

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

index c386aaf40034f09ef587774b31e866365fade8d0..bc431f04c4cf895ce8697e73cb097a296de56146 100644 (file)
@@ -925,7 +925,7 @@ static int goldfish_pipe_probe(struct platform_device *pdev)
         *  reading device version back: this allows the host implementation to
         *  detect the old driver (if there was no version write before read).
         */
-       writel((u32)PIPE_DRIVER_VERSION, dev->base + PIPE_REG_VERSION);
+       writel(PIPE_DRIVER_VERSION, dev->base + PIPE_REG_VERSION);
        dev->version = readl(dev->base + PIPE_REG_VERSION);
        if (WARN_ON(dev->version < PIPE_CURRENT_DEVICE_VERSION))
                return -EINVAL;