]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm/mdp5: remove less than 0 comparison for unsigned value
authorAishwarya Pant <aishpant@gmail.com>
Tue, 10 Oct 2017 18:42:07 +0000 (00:12 +0530)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 11 Oct 2017 11:17:52 +0000 (13:17 +0200)
commit0c17151aaae4f051ebdccde412e912631e450345
treedb3c695ebff975ea3f487bb2cdb7106c06a95ea9
parente25f1f7c94e16d4493398300efa03e5b6c77fcbf
drm/msm/mdp5: remove less than 0 comparison for unsigned value

pipe is an unsigned int and less than zero comparison for unsigned
values is always false.

Detected using the following cocci script:

@@
unsigned int i;
@@
* i < 0

Signed-off-by: Aishwarya Pant <aishpant@gmail.com>
Reviewed-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20171010184207.iv3dinrtwvbv7fei@aishwarya
drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c