ASoC: Intel: skylake: (cosmetic) remove redundant variable initialisations
authorGuennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Thu, 12 Mar 2020 19:48:55 +0000 (14:48 -0500)
committerMark Brown <broonie@kernel.org>
Fri, 13 Mar 2020 15:44:54 +0000 (15:44 +0000)
Variables, used as loop iterators, don't need to be initialised.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20200312194859.4051-7-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/skylake/skl.c

index f755ca2484cff75b87d9eff67d99676ab22cc987..1aa8114a4f77cb0516410a8209c350dd2b0090b7 100644 (file)
@@ -359,7 +359,7 @@ static int skl_resume(struct device *dev)
        struct pci_dev *pci = to_pci_dev(dev);
        struct hdac_bus *bus = pci_get_drvdata(pci);
        struct skl_dev *skl  = bus_to_skl(bus);
-       struct hdac_ext_link *hlink = NULL;
+       struct hdac_ext_link *hlink;
        int ret;
 
        /*
@@ -794,7 +794,7 @@ static void skl_probe_work(struct work_struct *work)
 {
        struct skl_dev *skl = container_of(work, struct skl_dev, probe_work);
        struct hdac_bus *bus = skl_to_bus(skl);
-       struct hdac_ext_link *hlink = NULL;
+       struct hdac_ext_link *hlink;
        int err;
 
        if (IS_ENABLED(CONFIG_SND_SOC_HDAC_HDMI)) {