Prefer using IS_ERR_OR_NULL() over using IS_ERR() and a manual NULL check. Change generated with coccinelle.
To: Jan Kara <[email protected]> Cc: [email protected] Signed-off-by: Philipp Hahn <[email protected]> --- fs/quota/quota.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/quota/quota.c b/fs/quota/quota.c index 33bacd70758007129e0375bab44d7431195ec441..2e09fc247d0cf45b9e83a4f8a0be7ea694c8c2a1 100644 --- a/fs/quota/quota.c +++ b/fs/quota/quota.c @@ -965,7 +965,7 @@ SYSCALL_DEFINE4(quotactl, unsigned int, cmd, const char __user *, special, else drop_super_exclusive(sb); out: - if (pathp && !IS_ERR(pathp)) + if (!IS_ERR_OR_NULL(pathp)) path_put(pathp); return ret; } -- 2.43.0
