[S390] appldata: unsigned ops->size cannot be negative
authorRoel Kluin <roel.kluin@gmail.com>
Tue, 28 Oct 2008 10:10:18 +0000 (11:10 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 28 Oct 2008 10:12:04 +0000 (11:12 +0100)
unsigned ops->size cannot be negative

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/appldata/appldata_base.c

index a7f8979fb92584bcf45ef94001557b2fe02d9674..a06a47cdd5e06e30efbde7f92b882fd2c948c610 100644 (file)
@@ -424,7 +424,7 @@ out:
  */
 int appldata_register_ops(struct appldata_ops *ops)
 {
-       if ((ops->size > APPLDATA_MAX_REC_SIZE) || (ops->size < 0))
+       if (ops->size > APPLDATA_MAX_REC_SIZE)
                return -EINVAL;
 
        ops->ctl_table = kzalloc(4 * sizeof(struct ctl_table), GFP_KERNEL);