|
|
@@ -378,8 +378,8 @@ int drm_property_add_enum(struct drm_property *property, int index,
|
|
|
if (WARN_ON(strlen(name) >= DRM_PROP_NAME_LEN))
|
|
|
return -EINVAL;
|
|
|
|
|
|
- if (!(drm_property_type_is(property, DRM_MODE_PROP_ENUM) ||
|
|
|
- drm_property_type_is(property, DRM_MODE_PROP_BITMASK)))
|
|
|
+ if (WARN_ON(!drm_property_type_is(property, DRM_MODE_PROP_ENUM) &&
|
|
|
+ !drm_property_type_is(property, DRM_MODE_PROP_BITMASK)))
|
|
|
return -EINVAL;
|
|
|
|
|
|
/*
|