staging: emxx_udc: Remove cast and move all in one line.
authorCristian Sicilia <sicilia.cristian@gmail.com>
Tue, 27 Nov 2018 20:57:17 +0000 (21:57 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Dec 2018 08:44:10 +0000 (09:44 +0100)
Remove the cast from IO_ADDRESS and use a single line.

Signed-off-by: Cristian Sicilia <sicilia.cristian@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/emxx_udc/emxx_udc.c

index 724dbbf073b72bd8640414f080e65846c712bd0e..8e8f57c4f029d568f66a82bd6c823ba90e5581e8 100644 (file)
@@ -108,20 +108,16 @@ static void _nbu2ss_dump_register(struct nbu2ss_udc *udc)
 
        dev_dbg(&udc->dev, "\n-USB REG-\n");
        for (i = 0x0 ; i < USB_BASE_SIZE ; i += 16) {
-               reg_data =   _nbu2ss_readl(
-                       (u32 *)IO_ADDRESS(USB_BASE_ADDRESS + i));
+               reg_data = _nbu2ss_readl(IO_ADDRESS(USB_BASE_ADDRESS + i));
                dev_dbg(&udc->dev, "USB%04x =%08x", i, (int)reg_data);
 
-               reg_data =  _nbu2ss_readl(
-                       (u32 *)IO_ADDRESS(USB_BASE_ADDRESS + i + 4));
+               reg_data = _nbu2ss_readl(IO_ADDRESS(USB_BASE_ADDRESS + i + 4));
                dev_dbg(&udc->dev, " %08x", (int)reg_data);
 
-               reg_data =  _nbu2ss_readl(
-                       (u32 *)IO_ADDRESS(USB_BASE_ADDRESS + i + 8));
+               reg_data = _nbu2ss_readl(IO_ADDRESS(USB_BASE_ADDRESS + i + 8));
                dev_dbg(&udc->dev, " %08x", (int)reg_data);
 
-               reg_data =  _nbu2ss_readl(
-                       (u32 *)IO_ADDRESS(USB_BASE_ADDRESS + i + 12));
+               reg_data = _nbu2ss_readl(IO_ADDRESS(USB_BASE_ADDRESS + i + 12));
                dev_dbg(&udc->dev, " %08x\n", (int)reg_data);
        }