Skip to content

Commit 0b7cd9d

Browse files
ISCAS-Vulabchucklever
authored andcommitted
nfsd: Use seq_putc() in two functions
A single character (line break) should be put into a sequence. Thus use the corresponding function "seq_putc()". Signed-off-by: Xu Wang <[email protected]> Signed-off-by: Chuck Lever <[email protected]>
1 parent 6787f0b commit 0b7cd9d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/nfsd/nfs4idmap.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ idtoname_show(struct seq_file *m, struct cache_detail *cd, struct cache_head *h)
168168
ent->id);
169169
if (test_bit(CACHE_VALID, &h->flags))
170170
seq_printf(m, " %s", ent->name);
171-
seq_printf(m, "\n");
171+
seq_putc(m, '\n');
172172
return 0;
173173
}
174174

@@ -346,7 +346,7 @@ nametoid_show(struct seq_file *m, struct cache_detail *cd, struct cache_head *h)
346346
ent->name);
347347
if (test_bit(CACHE_VALID, &h->flags))
348348
seq_printf(m, " %u", ent->id);
349-
seq_printf(m, "\n");
349+
seq_putc(m, '\n');
350350
return 0;
351351
}
352352

0 commit comments

Comments
 (0)