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

Commit 7d0ee461 authored by Peter Huewe's avatar Peter Huewe Committed by Mauro Carvalho Chehab
Browse files

[media] staging/media/solo6x10: Use PTR_RET rather than if(IS_ERR(...)) + PTR_ERR



Found with coccicheck.
The semantic patch that makes this change is available
in scripts/coccinelle/api/ptr_ret.cocci.

Signed-off-by: default avatarPeter Huewe <peterhuewe@gmx.de>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent c2668c08
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -415,10 +415,7 @@ static int solo_start_thread(struct solo_filehandle *fh)
{
	fh->kthread = kthread_run(solo_thread, fh, SOLO6X10_NAME "_disp");

	if (IS_ERR(fh->kthread))
		return PTR_ERR(fh->kthread);

	return 0;
	return PTR_RET(fh->kthread);
}

static void solo_stop_thread(struct solo_filehandle *fh)