Commit 1f876c3f authored by Thierry Reding's avatar Thierry Reding
Browse files

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: default avatarThierry Reding <treding@nvidia.com>
parent 268892cb
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -227,11 +227,13 @@ static int host1x_probe(struct platform_device *pdev)
			return -ENOMEM;

		err = iommu_attach_device(host->domain, &pdev->dev);
		if (err) {
			if (err == -ENODEV) {
				iommu_domain_free(host->domain);
				host->domain = NULL;
				goto skip_iommu;
		} else if (err) {
			}

			goto fail_free_domain;
		}