Re: [PATCH] s390/dasd: use IS_ERR_OR_NULL() for debugfs error checking
From: Stefan Haberland
Date: Fri Aug 15 2025 - 10:13:27 EST
Am 14.08.25 um 09:12 schrieb Yang Xiuwei:
> From: Yang Xiuwei <yangxiuwei@xxxxxxxxxx>
>
> Current code checks both `!pde` and `IS_ERR(pde)` separately when
> handling debugfs directory creation. Replace with IS_ERR_OR_NULL()
> for more concise error checking.
>
> This change applies to:
> 1. dasd_debugfs_setup() helper function
> 2. dasd_statistics_createroot() initialization code
>
> Signed-off-by: Yang Xiuwei <yangxiuwei@xxxxxxxxxx>
applied, thanks