mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 10:31:46 +09:00
video: rockchip: iep: avoid -Wempty-body warning
Building with 'make W=1' shows a harmless -Wempty-body warning:
drivers/video/rockchip/iep/hw_iep_reg.c: In function 'iep_soft_rst':
drivers/video/rockchip/iep/hw_iep_reg.c:1313:49: error: suggest braces around empty body in an 'if' statement [-Werror=empty-body]
1313 | IEP_DBG("soft reset timeout.\n");
| ^
Change the empty debug macros to no_printk(), which avoids the
warnings and adds useful format string checks.
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ifff86aeab7cc988d5af694d8709fb4b9c634b044
This commit is contained in:
@@ -75,7 +75,7 @@ struct IEP_CAP {
|
||||
#if IEP_DEBUG
|
||||
#define IEP_DBG(format, args...) printk("%s: " format, DRIVER_NAME, ## args)
|
||||
#else
|
||||
#define IEP_DBG(format, args...)
|
||||
#define IEP_DBG(format, args...) no_printk("%s: " format, DRIVER_NAME, ## args)
|
||||
#endif
|
||||
|
||||
#define IEP_INFORMATION 1
|
||||
|
||||
Reference in New Issue
Block a user