summaryrefslogtreecommitdiffstats
path: root/drivers/staging/media
diff options
context:
space:
mode:
authorPeter Huewe2013-01-25 23:10:12 +0100
committerMauro Carvalho Chehab2013-02-08 16:02:50 +0100
commit7d0ee461fd173fea8ca254924263f189a3f0dc08 (patch)
tree5d792c551efce8398a9b054f8f53b912e16d1578 /drivers/staging/media
parent[media] s5c73m3: Remove __dev* attributes (diff)
downloadkernel-qcow2-linux-7d0ee461fd173fea8ca254924263f189a3f0dc08.tar.gz
kernel-qcow2-linux-7d0ee461fd173fea8ca254924263f189a3f0dc08.tar.xz
kernel-qcow2-linux-7d0ee461fd173fea8ca254924263f189a3f0dc08.zip
[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: Peter Huewe <peterhuewe@gmx.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/staging/media')
-rw-r--r--drivers/staging/media/solo6x10/v4l2.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/staging/media/solo6x10/v4l2.c b/drivers/staging/media/solo6x10/v4l2.c
index 571c3a348d30..ca774cc57539 100644
--- a/drivers/staging/media/solo6x10/v4l2.c
+++ b/drivers/staging/media/solo6x10/v4l2.c
@@ -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)