[PATCH] drm/amdgpu/display: fix semicolon.cocci warnings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_stream_encoder.c:411:23-24: Unneeded semicolon
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_stream_encoder.c:420:39-40: Unneeded semicolon


 Remove unneeded semicolon.

Generated by: scripts/coccinelle/misc/semicolon.cocci

CC: Harry Wentland <harry.wentland@xxxxxxx>
Signed-off-by: Fengguang Wu <fengguang.wu@xxxxxxxxx>
---

 dce_stream_encoder.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- a/drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_stream_encoder.c
+++ b/drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_stream_encoder.c
@@ -408,7 +408,7 @@ static void dce110_stream_encoder_dp_set
 	if (REG(DP_MSA_TIMING_PARAM1)) {
 		switch (output_color_space) {
 		case COLOR_SPACE_SRGB:
-			misc0 = misc0 | 0x0;;
+			misc0 = misc0 | 0x0;
 			misc1 = misc1 & ~0x80; /* bit7 = 0*/
 			break;
 		case COLOR_SPACE_SRGB_LIMITED:
@@ -417,7 +417,7 @@ static void dce110_stream_encoder_dp_set
 			break;
 		case COLOR_SPACE_YCBCR601:
 			misc0 = misc0 | 0x8; /* bit3=1, bit4=0 */
-			misc1 = misc1 & ~0x80; /* bit7 = 0*/;
+			misc1 = misc1 & ~0x80; /* bit7 = 0*/
 			if (crtc_timing->pixel_encoding == PIXEL_ENCODING_YCBCR422)
 				misc0 = misc0 | 0x2; /* bit2=0, bit1=1 */
 			else if (crtc_timing->pixel_encoding == PIXEL_ENCODING_YCBCR444)
_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux