OSDN Git Service

video: fbdev: pvr2fb: remove unnecessary comparison of unsigned integer with < 0
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Mon, 22 Jul 2019 20:33:58 +0000 (15:33 -0500)
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Mon, 19 Aug 2019 13:52:23 +0000 (15:52 +0200)
commitdbb4a75b9c405dbd0a53698a6d21626145138193
treecdd4f9694f73ffb2cd1f43a5dc3ef65e28f8f05b
parent51677dfcc17f88ed754143df670ff064eae67f84
video: fbdev: pvr2fb: remove unnecessary comparison of unsigned integer with < 0

There is no need to compare *var->xoffset* or *var->yoffset* with < 0
because such variables are of type unsigned, making it impossible to
hold a negative value.

Fix this by removing such comparisons.

Addresses-Coverity-ID: 1451964 ("Unsigned compared against 0")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190722203358.GA29111@embeddedor
drivers/video/fbdev/pvr2fb.c