VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   33 Branches   57 Tags
author: Greg Kroah-Hartman <gregkh@linuxfoundation.org> 2021-05-03 13:56:55 +0200 committer: Greg Kroah-Hartman <gregkh@linuxfoundation.org> 2021-05-13 17:33:33 +0200 commit: 566f53238da74801b48e985788e5f7c9159e5940 parent: d03d1021da6fe7f46efe9f2a7335564e7c9db5ab
Commit Summary:
Revert "char: hpet: fix a missing check of ioremap"
Diffstat:
1 file changed, 0 insertions, 2 deletions
diff --git a/drivers/char/hpet.c b/drivers/char/hpet.c
index ed3b7dab678d..6f13def6c172 100644
--- a/drivers/char/hpet.c
+++ b/drivers/char/hpet.c
@@ -969,8 +969,6 @@ static acpi_status hpet_resources(struct acpi_resource *res, void *data)
 	if (ACPI_SUCCESS(status)) {
 		hdp->hd_phys_address = addr.address.minimum;
 		hdp->hd_address = ioremap(addr.address.minimum, addr.address.address_length);
-		if (!hdp->hd_address)
-			return AE_ERROR;
 
 		if (hpet_is_known(hdp)) {
 			iounmap(hdp->hd_address);