Skip to content

Commit 235699e

Browse files
weiyongjun \(A\)herbertx
authored andcommitted
crypto: axis - remove unnecessary platform_get_resource() error check
devm_ioremap_resource() already checks if the resource is NULL, so remove the unnecessary platform_get_resource() error check. Signed-off-by: Wei Yongjun <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent 466d7b9 commit 235699e

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/crypto/axis/artpec6_crypto.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3042,9 +3042,6 @@ static int artpec6_crypto_probe(struct platform_device *pdev)
30423042
variant = (enum artpec6_crypto_variant)match->data;
30433043

30443044
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
3045-
if (!res)
3046-
return -ENODEV;
3047-
30483045
base = devm_ioremap_resource(&pdev->dev, res);
30493046
if (IS_ERR(base))
30503047
return PTR_ERR(base);

0 commit comments

Comments
 (0)