Commit b9ab1f3f authored by Michal Wajdeczko's avatar Michal Wajdeczko Committed by Chris Wilson

drm/i915/uc: Drop use of MISSING_CASE on trivial enums

We can rely on compiler to notify us if we miss any case.
This approach may also reduce driver size (reported ~4K).
Signed-off-by: default avatarMichal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Jani Nikula <jani.nikula@intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170331102652.177664-1-michal.wajdeczko@intel.comReviewed-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
parent d7c530b2
...@@ -114,10 +114,8 @@ const char *intel_uc_fw_status_repr(enum intel_uc_fw_status status) ...@@ -114,10 +114,8 @@ const char *intel_uc_fw_status_repr(enum intel_uc_fw_status status)
return "PENDING"; return "PENDING";
case INTEL_UC_FIRMWARE_SUCCESS: case INTEL_UC_FIRMWARE_SUCCESS:
return "SUCCESS"; return "SUCCESS";
default:
MISSING_CASE(status);
return "<invalid>";
} }
return "<invalid>";
} }
enum intel_uc_fw_type { enum intel_uc_fw_type {
...@@ -133,10 +131,8 @@ static inline const char *intel_uc_fw_type_repr(enum intel_uc_fw_type type) ...@@ -133,10 +131,8 @@ static inline const char *intel_uc_fw_type_repr(enum intel_uc_fw_type type)
return "GuC"; return "GuC";
case INTEL_UC_FW_TYPE_HUC: case INTEL_UC_FW_TYPE_HUC:
return "HuC"; return "HuC";
default:
MISSING_CASE(type);
return "<invalid>";
} }
return "uC";
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment