Re: [PATCH -next] RDMA/hns: Remove unnecessary platform_get_resource() error check

Leon Romanovsky
2018-01-17T11:45:20Z

[-- Attachment #1: Type: text/plain, Size: 461 bytes --]

On Wed, Jan 17, 2018 at 11:28:38AM +0000, Wei Yongjun wrote:
> devm_ioremap_resource() already checks if the resource is NULL, so
> remove the unnecessary platform_get_resource() error check.
>
> Signed-off-by: Wei Yongjun <weiyongjun1-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
> ---
> drivers/infiniband/hw/hns/hns_roce_hw_v1.c | 4 ----
> 1 file changed, 4 deletions(-)
>

Thanks,
Reviewed-by: Leon Romanovsky <leonro-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]