Skip to contentSkip to conversation

media: ivtv: no need to initialise statics to 0

PATCH New Jason Wang 1 participant 1 message Dec 12, 2021

Subsystems (2)
lore
Share & tools
lore

Jason Wang

author
#0 lore raw

PATCH 1/1 media: ivtv: no need to initialise statics to 0

Static variables do not need to be initialised to 0, because compiler will initialise all uninitialised statics to 0. Thus, remove the unneeded initializations.

---
 drivers/media/pci/ivtv/ivtvfb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/pci/ivtv/ivtvfb.c +1 -1
index 2c43ebf83966..00ac94d4ab19 100644
@@ -42,7 +42,7 @@
 
 /* card parameters */
 static int ivtvfb_card_id = -1;
-static int ivtvfb_debug = 0;
+static int ivtvfb_debug;
 static bool ivtvfb_force_pat = IS_ENABLED(CONFIG_VIDEO_FB_IVTV_FORCE_PAT);
 static bool osd_laced;
 static int osd_depth;
Signature · 1 line
2.34.1