sunrast: Remove if (unsigned int < 0) check.
authorAneesh Dogra <lionaneesh@gmail.com>
Sun, 29 Jan 2012 05:25:32 +0000 (10:55 +0530)
committerRonald S. Bultje <rsbultje@gmail.com>
Sun, 29 Jan 2012 16:11:18 +0000 (08:11 -0800)
Note: This fixes the following GCC warning :-
libavcodec/sunrast.c:94: warning: comparison of unsigned expression < 0 is always false.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
libavcodec/sunrast.c

index b21c260..c7af1fd 100644 (file)
@@ -93,7 +93,7 @@ static int sunrast_decode_frame(AVCodecContext *avctx, void *data,
         av_log(avctx, AV_LOG_ERROR, "unsupported (compression) type\n");
         return -1;
     }
-    if (type < RT_OLD || type > RT_FORMAT_IFF) {
+    if (type > RT_FORMAT_IFF) {
         av_log(avctx, AV_LOG_ERROR, "invalid (compression) type\n");
         return -1;
     }