Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: emxx_udc: Remove cast and move all in one line.

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>

authored by

Cristian Sicilia and committed by
Greg Kroah-Hartman
c38465d0 0ff8c980

+4 -8
+4 -8
drivers/staging/emxx_udc/emxx_udc.c
··· 108 108 109 109 dev_dbg(&udc->dev, "\n-USB REG-\n"); 110 110 for (i = 0x0 ; i < USB_BASE_SIZE ; i += 16) { 111 - reg_data = _nbu2ss_readl( 112 - (u32 *)IO_ADDRESS(USB_BASE_ADDRESS + i)); 111 + reg_data = _nbu2ss_readl(IO_ADDRESS(USB_BASE_ADDRESS + i)); 113 112 dev_dbg(&udc->dev, "USB%04x =%08x", i, (int)reg_data); 114 113 115 - reg_data = _nbu2ss_readl( 116 - (u32 *)IO_ADDRESS(USB_BASE_ADDRESS + i + 4)); 114 + reg_data = _nbu2ss_readl(IO_ADDRESS(USB_BASE_ADDRESS + i + 4)); 117 115 dev_dbg(&udc->dev, " %08x", (int)reg_data); 118 116 119 - reg_data = _nbu2ss_readl( 120 - (u32 *)IO_ADDRESS(USB_BASE_ADDRESS + i + 8)); 117 + reg_data = _nbu2ss_readl(IO_ADDRESS(USB_BASE_ADDRESS + i + 8)); 121 118 dev_dbg(&udc->dev, " %08x", (int)reg_data); 122 119 123 - reg_data = _nbu2ss_readl( 124 - (u32 *)IO_ADDRESS(USB_BASE_ADDRESS + i + 12)); 120 + reg_data = _nbu2ss_readl(IO_ADDRESS(USB_BASE_ADDRESS + i + 12)); 125 121 dev_dbg(&udc->dev, " %08x\n", (int)reg_data); 126 122 } 127 123