]> git.baikalelectronics.ru Git - kernel.git/commit
usb: chipidea: udc: Use the preferred form for passing a size of a struct
authorFabio Estevam <fabio.estevam@nxp.com>
Thu, 8 Sep 2016 12:34:32 +0000 (09:34 -0300)
committerPeter Chen <peter.chen@nxp.com>
Wed, 14 Sep 2016 02:58:13 +0000 (10:58 +0800)
commitaaf90c08b3aed2f217ea1f21649ff664b3624f93
treebe3bc745e64cc4ea95388391b2a6da61fe4b043c
parent9286d1d98698cbb6acb73f64ce07c01f4af85676
usb: chipidea: udc: Use the preferred form for passing a size of a struct

According to Documentation/CodingStyle:

"The preferred form for passing a size of a struct is the following:

p = kmalloc(sizeof(*p), ...);
"
, so do as suggested to improve readability.

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
drivers/usb/chipidea/udc.c