OSDN Git Service

i965: Remove negative check on unsigned variable
authorVictor Toso <me@victortoso.com>
Mon, 18 Dec 2017 15:28:32 +0000 (16:28 +0100)
committerXiang, Haihao <haihao.xiang@intel.com>
Wed, 10 Jan 2018 01:12:43 +0000 (09:12 +0800)
commit2666d64d63a2fff62e6b9a302c4f9d521b8ceafd
tree63ccd87d5c045f12424ae654775bb87fd1ceb9ee
parent6c1b9b345982babde748518de1834e2af8bcf321
i965: Remove negative check on unsigned variable

Since its intoduction at 58a4a6afe80835829e95d

> i965_drv_video.c:2860:23: warning: comparison of unsigned
> expression < 0 is always false [-Wtautological-compare]
>    if ((num_elements < 0) ||
>         ~~~~~~~~~~~~ ^ ~

Signed-off-by: Victor Toso <victortoso@redhat.com>
src/i965_drv_video.c