Source
73
73
case KMS_WIDTH:
74
74
width = value;
75
75
break;
76
76
case KMS_HEIGHT:
77
77
height = value;
78
78
break;
79
79
case KMS_BO_TYPE:
80
80
type = value;
81
81
break;
82
82
default:
83
-
return EINVAL;
83
+
return -EINVAL;
84
84
}
85
85
}
86
86
87
87
if (width == 0 || height == 0)
88
88
return -EINVAL;
89
89
90
90
/* XXX sanity check type */
91
91
92
92
if (type == KMS_BO_TYPE_CURSOR_64X64_A8R8G8B8 &&
93
93
(width != 64 || height != 64))