summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2007-05-13 11:56:44 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-05-13 11:56:44 -0300
commita8a57cea90bf4a084f8b4360f020ec2a0c1a426f (patch)
tree488eacb2bd078489c94a772215e692a969a106af
parent1976b04c7de32d12ec4c81e42bf21860dadd0dd4 (diff)
downloadmediapointer-dvb-s2-a8a57cea90bf4a084f8b4360f020ec2a0c1a426f.tar.gz
mediapointer-dvb-s2-a8a57cea90bf4a084f8b4360f020ec2a0c1a426f.tar.bz2
backport a cleanup on zoran_driver
From: Mauro Carvalho Chehab <mchehab@infradead.org> kernel-sync: Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
-rw-r--r--linux/drivers/media/video/zoran_driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/zoran_driver.c b/linux/drivers/media/video/zoran_driver.c
index 4c46573c9..de85abc45 100644
--- a/linux/drivers/media/video/zoran_driver.c
+++ b/linux/drivers/media/video/zoran_driver.c
@@ -2037,7 +2037,7 @@ zoran_do_ioctl (struct inode *inode,
* but moving the free code outside the munmap() handler fixes
* all this... If someone knows why, please explain me (Ronald)
*/
- if (!!mutex_trylock(&zr->resource_lock)) {
+ if (mutex_trylock(&zr->resource_lock)) {
/* we obtained it! Let's try to free some things */
if (fh->jpg_buffers.ready_to_be_freed)
jpg_fbuffer_free(file);