]> git.baikalelectronics.ru Git - kernel.git/commit
[media] s5p-mfc: Fix an error check
authorSachin Kamat <sachin.kamat@linaro.org>
Wed, 2 Jan 2013 09:45:49 +0000 (06:45 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 6 Jan 2013 11:57:09 +0000 (09:57 -0200)
commit3a57d6e52c5c042a7e3d7dd3c85e0ac7d708d311
tree8a24632ac74f1129f11fb47df5abf2067b742b94
parent27bbf5f4df1d00dcaa9a316985da115284bd5f9f
[media] s5p-mfc: Fix an error check

Checking unsigned variable for negative value always returns false.
Hence make this value signed as we expect it to be negative too.
Fixes the following smatch warning:
drivers/media/platform/s5p-mfc/s5p_mfc_opr_v6.c:572
s5p_mfc_set_enc_ref_buffer_v6() warn: unsigned 'buf_size1' is never
less than zero.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/platform/s5p-mfc/s5p_mfc_opr_v6.c