usb: renesas_usbhs: tidyup original usbhsx_for_each_xxx macro
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Fri, 12 Jul 2013 05:32:31 +0000 (22:32 -0700)
committerFelipe Balbi <balbi@ti.com>
Mon, 29 Jul 2013 10:58:12 +0000 (13:58 +0300)
commit925403f425a4a9c503f2fc295652647b1eb10d82
treeeb3c1528de7ed53c3f6a5960e74c9fc1c36f6ace
parent519c6013d356fef95c9e45cfb533b3e68b47dbf4
usb: renesas_usbhs: tidyup original usbhsx_for_each_xxx macro

Current usbhsx_for_each_xxx macro will read out-of-array's
memory after last loop operation.
It was not good C language operation, and the binary which was
compiled by (at least) gcc 4.8.1 is broken
This patch tidyup these issues

Reported-by: Yusuke Goda <yusuke.goda.sx@renesas.com>
Reviewed-by: Takashi Yoshii <takashi.yoshii.zj@renesas.com>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/renesas_usbhs/mod_gadget.c
drivers/usb/renesas_usbhs/mod_host.c
drivers/usb/renesas_usbhs/pipe.h