From: Yang Yingliang Date: Fri, 16 Sep 2022 14:07:57 +0000 (+0800) Subject: ASoC: Intel: skylake: remove unnecessary dev_set_drvdata() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=d508260e89a7d1889bbb5788fdfc52cc3eb8ddb6;p=linux.git ASoC: Intel: skylake: remove unnecessary dev_set_drvdata() Remove unnecessary dev_set_drvdata() in skl_remove(), the driver_data will be set to NULL in device_unbind_cleanup() after calling ->remove(). Signed-off-by: Yang Yingliang Link: https://lore.kernel.org/r/20220916140757.681414-1-yangyingliang@huawei.com Signed-off-by: Mark Brown --- diff --git a/sound/soc/intel/skylake/skl.c b/sound/soc/intel/skylake/skl.c index 3997af4eaa898..5707dfee603f2 100644 --- a/sound/soc/intel/skylake/skl.c +++ b/sound/soc/intel/skylake/skl.c @@ -1127,7 +1127,6 @@ static void skl_remove(struct pci_dev *pci) if (skl->nhlt) intel_nhlt_free(skl->nhlt); skl_free(bus); - dev_set_drvdata(&pci->dev, NULL); } /* PCI IDs */