Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1437273 > unrolled thread

[PATCH v2 6/7] drm/nouveau/fifo/gk104: make use of new strcpytoupper() function

Started byMarkus Mayer <mmayer@broadcom.com>
First post2016-07-05 22:50 +0200
Last post2016-07-05 22:50 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH v2 6/7] drm/nouveau/fifo/gk104: make use of new strcpytoupper() function Markus Mayer <mmayer@broadcom.com> - 2016-07-05 22:50 +0200

#1437273 — [PATCH v2 6/7] drm/nouveau/fifo/gk104: make use of new strcpytoupper() function

FromMarkus Mayer <mmayer@broadcom.com>
Date2016-07-05 22:50 +0200
Subject[PATCH v2 6/7] drm/nouveau/fifo/gk104: make use of new strcpytoupper() function
Message-ID<rRFs5-7Ol-25@gated-at.bofh.it>
Call strcpytoupper() rather than copying the string explicitly and then
walking it to convert it to uppercase.

Signed-off-by: Markus Mayer <mmayer@broadcom.com>
---
 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c b/drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c
index 743f3a1..8d01032 100644
--- a/drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c
+++ b/drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c
@@ -332,10 +332,7 @@ gk104_fifo_intr_fault(struct gk104_fifo *fifo, int unit)
 		enum nvkm_devidx engidx = nvkm_top_fault(device->top, unit);
 		if (engidx < NVKM_SUBDEV_NR) {
 			const char *src = nvkm_subdev_name[engidx];
-			char *dst = en;
-			do {
-				*dst++ = toupper(*src++);
-			} while(*src);
+			strcpytoupper(en, src);
 			engine = nvkm_device_engine(device, engidx);
 		}
 	} else {
-- 
2.7.4

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web