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


Groups > linux.kernel > #1635903 > unrolled thread

[PATCH 8/9] drm/i915: Replace a seq_puts() call by seq_putc() in two functions

Started bySF Markus Elfring <elfring@users.sourceforge.net>
First post2017-05-04 19:10 +0200
Last post2017-05-04 19:10 +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 8/9] drm/i915: Replace a seq_puts() call by seq_putc() in two  functions SF Markus Elfring <elfring@users.sourceforge.net> - 2017-05-04 19:10 +0200

#1635903 — [PATCH 8/9] drm/i915: Replace a seq_puts() call by seq_putc() in two functions

FromSF Markus Elfring <elfring@users.sourceforge.net>
Date2017-05-04 19:10 +0200
Subject[PATCH 8/9] drm/i915: Replace a seq_puts() call by seq_putc() in two functions
Message-ID<tDsql-6ts-3@gated-at.bofh.it>
From: Markus Elfring <elfring@users.sourceforge.net>
Date: Thu, 4 May 2017 14:23:32 +0200

Two single characters (line breaks) should be put into a sequence.
Thus use the corresponding function "seq_putc".

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
---
 drivers/gpu/drm/i915/i915_gem_gtt.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/i915/i915_gem_gtt.c b/drivers/gpu/drm/i915/i915_gem_gtt.c
index 2aa6b97fd22f..9f64dc3f2d05 100644
--- a/drivers/gpu/drm/i915/i915_gem_gtt.c
+++ b/drivers/gpu/drm/i915/i915_gem_gtt.c
@@ -1254,7 +1254,7 @@ static void gen8_dump_pdp(struct i915_hw_ppgtt *ppgtt,
 					else
 						seq_puts(m, "  SCRATCH ");
 				}
-				seq_puts(m, "\n");
+				seq_putc(m, '\n');
 			}
 			kunmap_atomic(pt_vaddr);
 		}
@@ -1437,7 +1437,7 @@ static void gen6_dump_ppgtt(struct i915_hw_ppgtt *ppgtt, struct seq_file *m)
 				else
 					seq_puts(m, "  SCRATCH ");
 			}
-			seq_puts(m, "\n");
+			seq_putc(m, '\n');
 		}
 		kunmap_atomic(pt_vaddr);
 	}
-- 
2.12.2

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web