about summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/libpgm1.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/libpgm1.c b/lib/libpgm1.c
index ded55f9b..43458f8a 100644
--- a/lib/libpgm1.c
+++ b/lib/libpgm1.c
@@ -127,9 +127,6 @@ pgm_validateComputableMaxval(gray const maxval) {
        value is greater than the maxval.
     */
 
-    if (maxval == 0)
-        pm_error("Maxval is zero.  Must be at least one.");
-
     if (maxval > INT_MAX-1)
         pm_error("Maxval (%u) is too large to be processed", maxval);
 }