]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/s390/appldata/appldata_base.c
[S390] appldata: unsigned ops->size cannot be negative
[linux-2.6-omap-h63xx.git] / 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);