mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-05 06:05:06 +00:00
gpu: host1x: Rewrite conditional for better readability
The current check is slightly difficult to read, rewrite it to improve that a little. Signed-off-by: Thierry Reding <treding@nvidia.com>
This commit is contained in:
parent
268892cb63
commit
1f876c3fce
1 changed files with 7 additions and 5 deletions
|
@ -227,11 +227,13 @@ static int host1x_probe(struct platform_device *pdev)
|
|||
return -ENOMEM;
|
||||
|
||||
err = iommu_attach_device(host->domain, &pdev->dev);
|
||||
if (err == -ENODEV) {
|
||||
iommu_domain_free(host->domain);
|
||||
host->domain = NULL;
|
||||
goto skip_iommu;
|
||||
} else if (err) {
|
||||
if (err) {
|
||||
if (err == -ENODEV) {
|
||||
iommu_domain_free(host->domain);
|
||||
host->domain = NULL;
|
||||
goto skip_iommu;
|
||||
}
|
||||
|
||||
goto fail_free_domain;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue