]> git.baikalelectronics.ru Git - kernel.git/commit
[media] tlg2300: fix up check_firmware() return
authorDan Carpenter <dan.carpenter@oracle.com>
Sun, 15 Jan 2012 10:32:19 +0000 (07:32 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 16 Jan 2012 14:38:00 +0000 (12:38 -0200)
commit892d3409b3ea68e174c2e36f3b74c796b2f9fc33
tree81830cbe62476f40f46cdbc06af1f1745a4d14c8
parent50bdcd00406a3bce8a5df69ddba6a9e047acad28
[media] tlg2300: fix up check_firmware() return

The caller doesn't check the return value of check_firmware() but static
checkers complain.  It currently returns negative error codes, or zero
or greater on success but since the return type is boolean the values
are truncated to one or zero.  I've changed it to return an int,
negative on error and zero on success.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/tlg2300/pd-main.c