[media] em28xx-i2c: rt_mutex_trylock() returns zero on failure
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 9 May 2016 08:22:55 +0000 (05:22 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 10 Jun 2016 11:29:40 +0000 (08:29 -0300)
commite44c153b30c9a0580fc2b5a93f3c6d593def2278
tree14d26e4daea500ed68ff19e754d4facaede626e7
parent917d11a4e0c8c9e3d375a7baa945fe0da6b15f88
[media] em28xx-i2c: rt_mutex_trylock() returns zero on failure

The code is checking for negative returns but it should be checking for
zero.

Fixes: aab3125c43d8 ('[media] em28xx: add support for registering multiple i2c buses')

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/usb/em28xx/em28xx-i2c.c