Skip to content

Commit

Permalink
ASoC: mxs-saif: Avoid unnecessary check
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tang Bin authored and Mark Brown committed Apr 27, 2020
1 parent b1ca2f6 commit e66f385
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions sound/soc/mxs/mxs-saif.c
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit e66f385

Please sign in to comment.