Message ID | 20180404000456.1407-2-radhakrishna.sripada@intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/drivers/gpu/drm/i915/intel_guc.c b/drivers/gpu/drm/i915/intel_guc.c index a00a59a7d9ec..eb6f0bb7c084 100644 --- a/drivers/gpu/drm/i915/intel_guc.c +++ b/drivers/gpu/drm/i915/intel_guc.c @@ -225,7 +225,7 @@ static u32 get_core_family(struct drm_i915_private *dev_priv) static u32 get_log_control_flags(void) { - u32 level = i915_modparams.guc_log_level; + int level = i915_modparams.guc_log_level; u32 flags = 0; GEM_BUG_ON(level < 0);
Static code analysis tool has reported an unused check of log_level<0 when using u32. Use int instead of u32 to store guc_log_level. Cc: Anusha Srivatsa <anusha.srivatsa@intel.com> Signed-off-by: Radhakrishna Sripada <radhakrishna.sripada@intel.com> --- drivers/gpu/drm/i915/intel_guc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)