diff mbox series

drm/drv: Remove initialization of static variables

Message ID 1613701811-32037-1-git-send-email-tiantao6@hisilicon.com (mailing list archive)
State New, archived
Headers show
Series drm/drv: Remove initialization of static variables | expand

Commit Message

Tian Tao Feb. 19, 2021, 2:30 a.m. UTC
Address the following checkpatch errors:
ERROR: do not initialise statics to false

Signed-off-by: Tian Tao <tiantao6@hisilicon.com>
---
 drivers/gpu/drm/drm_drv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Thomas Zimmermann Feb. 19, 2021, 8:23 a.m. UTC | #1
Am 19.02.21 um 03:30 schrieb Tian Tao:
> Address the following checkpatch errors:
> ERROR: do not initialise statics to false
> 
> Signed-off-by: Tian Tao <tiantao6@hisilicon.com>

Acked-by: Thomas Zimmermann <tzimmermann@suse.de>

Thanks for the patch.

> ---
>   drivers/gpu/drm/drm_drv.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/drm_drv.c b/drivers/gpu/drm/drm_drv.c
> index 20d22e4..c2f78de 100644
> --- a/drivers/gpu/drm/drm_drv.c
> +++ b/drivers/gpu/drm/drm_drv.c
> @@ -61,7 +61,7 @@ static struct idr drm_minors_idr;
>    * prefer to embed struct drm_device into their own device
>    * structure and call drm_dev_init() themselves.
>    */
> -static bool drm_core_init_complete = false;
> +static bool drm_core_init_complete;
>   
>   static struct dentry *drm_debugfs_root;
>   
>
diff mbox series

Patch

diff --git a/drivers/gpu/drm/drm_drv.c b/drivers/gpu/drm/drm_drv.c
index 20d22e4..c2f78de 100644
--- a/drivers/gpu/drm/drm_drv.c
+++ b/drivers/gpu/drm/drm_drv.c
@@ -61,7 +61,7 @@  static struct idr drm_minors_idr;
  * prefer to embed struct drm_device into their own device
  * structure and call drm_dev_init() themselves.
  */
-static bool drm_core_init_complete = false;
+static bool drm_core_init_complete;
 
 static struct dentry *drm_debugfs_root;