1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
From f163b3a83a57e4a6946555fa6e363c7d89bfc380 Mon Sep 17 00:00:00 2001
From: kernel test robot <lkp@intel.com>
Date: Mon, 22 Mar 2021 18:44:34 +0100
Subject: [PATCH] drm/gud: Remove unneeded semicolon
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
[ Upstream commit 166633c85c21fbe0baec40c898ca5a4f6eee0a08 ]
drivers/gpu/drm/gud/gud_connector.c:658:2-3: Unneeded semicolon
drivers/gpu/drm/gud/gud_connector.c:186:2-3: Unneeded semicolon
drivers/gpu/drm/gud/gud_drv.c:511:3-4: Unneeded semicolon
drivers/gpu/drm/gud/gud_pipe.c:127:4-5: Unneeded semicolon
Remove unneeded semicolon.
Generated by: scripts/coccinelle/misc/semicolon.cocci
Fixes: 40e1a70b4aed ("drm: Add GUD USB Display driver")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: kernel test robot <lkp@intel.com>
[fix subject and squash 3 per file patches]
Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20210322174434.58849-2-noralf@tronnes.org
---
drivers/gpu/drm/gud/gud_connector.c | 4 ++--
drivers/gpu/drm/gud/gud_drv.c | 2 +-
drivers/gpu/drm/gud/gud_pipe.c | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
--- a/drivers/gpu/drm/gud/gud_connector.c
+++ b/drivers/gpu/drm/gud/gud_connector.c
@@ -183,7 +183,7 @@ static int gud_connector_detect(struct d
default:
ret = connector_status_unknown;
break;
- };
+ }
if (status & GUD_CONNECTOR_STATUS_CHANGED)
connector->epoch_counter += 1;
@@ -655,7 +655,7 @@ static int gud_connector_create(struct g
default: /* future types */
connector_type = DRM_MODE_CONNECTOR_USB;
break;
- };
+ }
drm_connector_helper_add(connector, &gud_connector_helper_funcs);
ret = drm_connector_init(drm, connector, &gud_connector_funcs, connector_type);
--- a/drivers/gpu/drm/gud/gud_drv.c
+++ b/drivers/gpu/drm/gud/gud_drv.c
@@ -521,7 +521,7 @@ static int gud_probe(struct usb_interfac
case DRM_FORMAT_XRGB8888:
xrgb8888_supported = true;
break;
- };
+ }
fmt_buf_size = drm_format_info_min_pitch(info, 0, drm->mode_config.max_width) *
drm->mode_config.max_height;
--- a/drivers/gpu/drm/gud/gud_pipe.c
+++ b/drivers/gpu/drm/gud/gud_pipe.c
@@ -124,7 +124,7 @@ static size_t gud_xrgb8888_to_color(u8 *
default:
WARN_ON_ONCE(1);
return len;
- };
+ }
*block |= pix << pixshift;
}
|