aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTang Bin <[email protected]>2020-08-26 23:09:18 +0800
committerMark Brown <[email protected]>2020-10-01 22:26:47 +0100
commit601fd3a7d849cf8a5dbd3628b3c29af9e5377961 (patch)
treeafde0cb247cbc0f656c1894c9cd9d4044d968390
parent08dd413b9ddf253ec3ee783a0a21df3754823be9 (diff)
ASoC: fsl_spdif: Fix unnecessary check in fsl_spdif_probe()
The function fsl_spdif_probe() is only called with an openfirmware platform device. Therefore there is no need to check that the passed in device is NULL. Signed-off-by: Zhang Shengju <[email protected]> Signed-off-by: Tang Bin <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
-rw-r--r--sound/soc/fsl/fsl_spdif.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sound/soc/fsl/fsl_spdif.c b/sound/soc/fsl/fsl_spdif.c
index 455f96908377..9c5607780590 100644
--- a/sound/soc/fsl/fsl_spdif.c
+++ b/sound/soc/fsl/fsl_spdif.c
@@ -1259,9 +1259,6 @@ static int fsl_spdif_probe(struct platform_device *pdev)
void __iomem *regs;
int irq, ret, i;
- if (!np)
- return -ENODEV;
-
spdif_priv = devm_kzalloc(&pdev->dev, sizeof(*spdif_priv), GFP_KERNEL);
if (!spdif_priv)
return -ENOMEM;