Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2b55732a authored by Alexandru Gheorghiu's avatar Alexandru Gheorghiu Committed by Martin Schwidefsky
Browse files

s390/hypfs: Use PTR_RET function



Used PTR_RET function instead of IS_ERR and PTR_ERR.
Patch found using coccinelle.

Signed-off-by: default avatarAlexandru Gheorghiu <gheorghiuandru@gmail.com>
Signed-off-by: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent 8fe853f3
Loading
Loading
Loading
Loading
+1 −3
Original line number Original line Diff line number Diff line
@@ -105,9 +105,7 @@ void hypfs_dbfs_remove_file(struct hypfs_dbfs_file *df)
int hypfs_dbfs_init(void)
int hypfs_dbfs_init(void)
{
{
	dbfs_dir = debugfs_create_dir("s390_hypfs", NULL);
	dbfs_dir = debugfs_create_dir("s390_hypfs", NULL);
	if (IS_ERR(dbfs_dir))
	return PTR_RET(dbfs_dir);
		return PTR_ERR(dbfs_dir);
	return 0;
}
}


void hypfs_dbfs_exit(void)
void hypfs_dbfs_exit(void)