projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
94c3a83
)
ASoC: qcom: qdsp6: Use the defined variable to clean code
author
Tang Bin
<tangbin@cmss.chinamobile.com>
Tue, 14 Jul 2020 11:29:23 +0000
(19:29 +0800)
committer
Mark Brown
<broonie@kernel.org>
Fri, 17 Jul 2020 13:46:58 +0000
(14:46 +0100)
Use the defined variable "dev" to make the code cleaner.
Signed-off-by: Zhang Shengju <zhangshengju@cmss.chinamobile.com>
Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
Link:
https://lore.kernel.org/r/20200714112923.14944-1-tangbin@cmss.chinamobile.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/qcom/qdsp6/q6adm.c
patch
|
blob
|
history
diff --git
a/sound/soc/qcom/qdsp6/q6adm.c
b/sound/soc/qcom/qdsp6/q6adm.c
index da242515e14679f8deebfb44e5bfb1e88440990d..2ec868b2dc043daeb72591bd94ff436ebff62ef3 100644
(file)
--- a/
sound/soc/qcom/qdsp6/q6adm.c
+++ b/
sound/soc/qcom/qdsp6/q6adm.c
@@
-588,12
+588,12
@@
static int q6adm_probe(struct apr_device *adev)
struct device *dev = &adev->dev;
struct q6adm *adm;
- adm = devm_kzalloc(
&adev->
dev, sizeof(*adm), GFP_KERNEL);
+ adm = devm_kzalloc(dev, sizeof(*adm), GFP_KERNEL);
if (!adm)
return -ENOMEM;
adm->apr = adev;
- dev_set_drvdata(
&adev->
dev, adm);
+ dev_set_drvdata(dev, adm);
adm->dev = dev;
q6core_get_svc_api_info(adev->svc_id, &adm->ainfo);
mutex_init(&adm->lock);