diff mbox series

i915/dp/fec: Fix static check warning

Message ID 20181130231428.7156-1-anusha.srivatsa@intel.com (mailing list archive)
State New, archived
Headers show
Series i915/dp/fec: Fix static check warning | expand

Commit Message

Srivatsa, Anusha Nov. 30, 2018, 11:14 p.m. UTC
From: Anusha Srivatsa <anusha.srivatsa@intel.com>

Fix indentation error in the commit:
commit 08cadae8e157 ("i915/dp/fec: Cache the FEC_CAPABLE DPCD register")

Fixes: 08cadae8e157 ("i915/dp/fec: Cache the FEC_CAPABLE DPCD register")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Anusha Srivatsa <anusha.srivatsa@intel.com>
---
 drivers/gpu/drm/i915/intel_dp.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Rodrigo Vivi Nov. 30, 2018, 11:28 p.m. UTC | #1
On Fri, Nov 30, 2018 at 03:14:28PM -0800, Anusha wrote:
> From: Anusha Srivatsa <anusha.srivatsa@intel.com>
> 
> Fix indentation error in the commit:
> commit 08cadae8e157 ("i915/dp/fec: Cache the FEC_CAPABLE DPCD register")
> 
> Fixes: 08cadae8e157 ("i915/dp/fec: Cache the FEC_CAPABLE DPCD register")
> Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
> Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
> Signed-off-by: Anusha Srivatsa <anusha.srivatsa@intel.com>

thanks for the report and patch.

Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>

> ---
>  drivers/gpu/drm/i915/intel_dp.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c
> index 38a6e82153fd..8fa28342cfe3 100644
> --- a/drivers/gpu/drm/i915/intel_dp.c
> +++ b/drivers/gpu/drm/i915/intel_dp.c
> @@ -4032,8 +4032,8 @@ static void intel_dp_get_dsc_sink_cap(struct intel_dp *intel_dp)
>  					      &intel_dp->fec_capable) < 0)
>  				DRM_ERROR("Failed to read FEC DPCD register\n");
>  
> -		DRM_DEBUG_KMS("FEC CAPABILITY: %x\n",
> -			      intel_dp->fec_capable);
> +			DRM_DEBUG_KMS("FEC CAPABILITY: %x\n",
> +				      intel_dp->fec_capable);
>  		}
>  	}
>  }
> -- 
> 2.19.1
>
Chris Wilson Dec. 1, 2018, 6:56 p.m. UTC | #2
Quoting Anusha (2018-11-30 23:14:28)
> From: Anusha Srivatsa <anusha.srivatsa@intel.com>
> 
> Fix indentation error in the commit:
> commit 08cadae8e157 ("i915/dp/fec: Cache the FEC_CAPABLE DPCD register")
> 
> Fixes: 08cadae8e157 ("i915/dp/fec: Cache the FEC_CAPABLE DPCD register")
> Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
> Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
> Signed-off-by: Anusha Srivatsa <anusha.srivatsa@intel.com>
> ---
>  drivers/gpu/drm/i915/intel_dp.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c
> index 38a6e82153fd..8fa28342cfe3 100644
> --- a/drivers/gpu/drm/i915/intel_dp.c
> +++ b/drivers/gpu/drm/i915/intel_dp.c
> @@ -4032,8 +4032,8 @@ static void intel_dp_get_dsc_sink_cap(struct intel_dp *intel_dp)
>                                               &intel_dp->fec_capable) < 0)
>                                 DRM_ERROR("Failed to read FEC DPCD register\n");
>  
> -               DRM_DEBUG_KMS("FEC CAPABILITY: %x\n",
> -                             intel_dp->fec_capable);
> +                       DRM_DEBUG_KMS("FEC CAPABILITY: %x\n",
> +                                     intel_dp->fec_capable);

I suggested it was useful to know !FEC CAPABILITY. If you are going to
print debug info, might as well show it all.
https://patchwork.freedesktop.org/patch/263060/
-Chris
diff mbox series

Patch

diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c
index 38a6e82153fd..8fa28342cfe3 100644
--- a/drivers/gpu/drm/i915/intel_dp.c
+++ b/drivers/gpu/drm/i915/intel_dp.c
@@ -4032,8 +4032,8 @@  static void intel_dp_get_dsc_sink_cap(struct intel_dp *intel_dp)
 					      &intel_dp->fec_capable) < 0)
 				DRM_ERROR("Failed to read FEC DPCD register\n");
 
-		DRM_DEBUG_KMS("FEC CAPABILITY: %x\n",
-			      intel_dp->fec_capable);
+			DRM_DEBUG_KMS("FEC CAPABILITY: %x\n",
+				      intel_dp->fec_capable);
 		}
 	}
 }