]> git.baikalelectronics.ru Git - kernel.git/commit
staging: atomisp: fix unsigned int comparison with less than zero
authorDaeseok Youn <daeseok.youn@gmail.com>
Wed, 15 Mar 2017 05:55:06 +0000 (14:55 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 Mar 2017 02:24:08 +0000 (11:24 +0900)
commitcad6461c38986168f6b4a4fe0070fcc94a099100
treea05de1ee0c8a6ab513d5bd28e303aa4b85207471
parent2f4f835dfcec69b83c5cbd75b2d126e0942fa72d
staging: atomisp: fix unsigned int comparison with less than zero

Fix warnings from the smatch tool

atomisp_cmd.c:2649
  atomisp_set_array_res() warn:
  unsigned 'config->width' is never less than zero.

atomisp_cmd.c:2650
  atomisp_set_array_res() warn:
  unsigned 'config->height' is never less than zero.

Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/media/atomisp/pci/atomisp2/atomisp_cmd.c