Re: [PATCH phy-next] phy: apple: apple: Check the actual ioremap return value
From: Sven Peter
Date: Mon Feb 09 2026 - 11:51:57 EST
On 07.02.26 17:40, Janne Grunau wrote:
The address where the devm_ioremap_resource() return value is stored is
always a valid pointer. Check the actual return value instead as that
that might be an error value.
Reported-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>
Closes: https://lore.kernel.org/asahi/aYXvX1bYOXtYCgfC@stanley.mountain/
Fixes: 8e98ca1e74db ("phy: apple: Add Apple Type-C PHY")
Signed-off-by: Janne Grunau <j@xxxxxxxxxx>
---
Reviewed-by: Sven Peter <sven@xxxxxxxxxx>
Thanks,
Sven