Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

soc: qcom: socinfo: Use seq_putc() if possible

This is a single character that we're printing out. Use seq_putc() for
that to simplify the code.

Cc: Vaishali Thakkar <vaishali.thakkar@linaro.org>
Signed-off-by: Stephen Boyd <swboyd@chromium.org>
Link: https://lore.kernel.org/r/20200309185123.65265-1-swboyd@chromium.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>

authored by

Stephen Boyd and committed by
Bjorn Andersson
cc41a527 efde2659

+1 -1
+1 -1
drivers/soc/qcom/socinfo.c
··· 277 277 { \ 278 278 struct smem_image_version *image_version = seq->private; \ 279 279 seq_puts(seq, image_version->type); \ 280 - seq_puts(seq, "\n"); \ 280 + seq_putc(seq, '\n'); \ 281 281 return 0; \ 282 282 } \ 283 283 static int open_image_##type(struct inode *inode, struct file *file) \