]> git.baikalelectronics.ru Git - kernel.git/commit
usb: gadget: s3c2410_udc: don't use pr_debug return value
authorArnd Bergmann <arnd@arndb.de>
Thu, 8 May 2014 13:52:14 +0000 (15:52 +0200)
committerFelipe Balbi <balbi@ti.com>
Wed, 14 May 2014 14:23:31 +0000 (09:23 -0500)
commitd81a0850146c822fb20328f5408726c45403c64e
treee052931cdd5d5b8f7c33998735a8e71112627a70
parent2eb9b1746c03183f58010fbf8cfcd2aa9cb8a331
usb: gadget: s3c2410_udc: don't use pr_debug return value

pr_debug() may be defined as "do { } while (0)" in some configurations,
which means one cannot rely on the return value to be available.

In the dprintk function in this driver, we can work around the
resulting build error trivially by returning the length that
this function already knows and ignoring the return value of
pr_debug.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Ben Dooks <ben-linux@fluff.org>
Cc: Kukjin Kim <kgene.kim@samsung.com>
Cc: linux-samsung-soc@vger.kernel.org
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/s3c2410_udc.c