soc: qcom: socinfo: Use seq_putc() if possible
Subsystems (2)
PATCH 1/1 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 <[email protected]>
Signed-off-by Stephen Boyd <[email protected]>
--- drivers/soc/qcom/socinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/soc/qcom/socinfo.c +1 -1
@@ -277,7 +277,7 @@ static int show_image_##type(struct seq_file *seq, void *p) \ { \struct smem_image_version *image_version = seq->private; \seq_puts (seq, image_version->type); \ -seq_puts (seq,"\n" ); \ +seq_putc (seq,'\n' ); \return 0 ; \ } \ static int open_image_##type(struct inode *inode, struct file *file) \
base-commit: 2c523b344dfa65a3738e7039832044aa133c75fb
Signature · 1 line
Sent by a computer, using git, on the internet