Skip to contentSkip to conversation

drm/drv: Remove initialization of static variables

PATCH In review Tian Tao 2 participants 2 messages Feb 19, 2021

Subsystems (2)
lore
Share & tools
lore

Tian Tao

author
#0 lore raw

PATCH 1/1 drm/drv: Remove initialization of static variables

Address the following checkpatch errors:
ERROR: do not initialise statics to false

---
 drivers/gpu/drm/drm_drv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/drm_drv.c +1 -1
index 20d22e4..c2f78de 100644
@@ -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;
 
Signature · 6 lines
2.7.4

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
maintainer Acked-by on v1 1/1
#1 lore raw

Am 19.02.21 um 03:30 schrieb Tian Tao:

Quoted 4 lines

Address the following checkpatch errors:
ERROR: do not initialise statics to false

Thanks for the patch.

Quoted 18 lines
---
  drivers/gpu/drm/drm_drv.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/drm_drv.c +1 -1
index 20d22e4..c2f78de 100644
@@ -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;
 
Signature · 6 lines
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Maxfeldstr. 5, 90409 Nürnberg, Germany
(HRB 36809, AG Nürnberg)
Geschäftsführer: Felix Imendörffer

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel