diff options
author | Tang Bin <tangbin@cmss.chinamobile.com> | 2020-04-20 22:25:09 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-04-27 14:08:41 +0100 |
commit | e66f385354b3bd29b713d8ab8556aa889723928f (patch) | |
tree | c14bc10f2af13100de05ff956e3ff2f82768ed46 | |
parent | b1ca2f63e20b471e8f86e35b4b5f9407f8cb3021 (diff) | |
download | linux-e66f385354b3bd29b713d8ab8556aa889723928f.tar.bz2 |
ASoC: mxs-saif: Avoid unnecessary check
The function mxs_saif_probe() is only called with an
openfirmware platform device. Therefore there is no
need to check that it has an openfirmware node.
Signed-off-by: Shengju Zhang <zhangshengju@cmss.chinamobile.com>
Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
Link: https://lore.kernel.org/r/20200420142509.9728-1-tangbin@cmss.chinamobile.com
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/mxs/mxs-saif.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sound/soc/mxs/mxs-saif.c b/sound/soc/mxs/mxs-saif.c index 1e38ce858326..64c095b91d35 100644 --- a/sound/soc/mxs/mxs-saif.c +++ b/sound/soc/mxs/mxs-saif.c @@ -736,9 +736,6 @@ static int mxs_saif_probe(struct platform_device *pdev) int irq, ret = 0; struct device_node *master; - if (!np) - return -EINVAL; - saif = devm_kzalloc(&pdev->dev, sizeof(*saif), GFP_KERNEL); if (!saif) return -ENOMEM; |