From: Markus Elfring Date: Mon, 17 Apr 2017 14:15:12 +0000 (+0200) Subject: sky2: Use seq_puts() in sky2_debug_show() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a0c51cf10720348001bc5fbcd1b521e8622efda1;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git sky2: Use seq_puts() in sky2_debug_show() A string which did not contain a data format specification should be put into a sequence. Thus use the corresponding function "seq_puts". This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/marvell/sky2.c b/drivers/net/ethernet/marvell/sky2.c index 2b2cc3f3ca10..1145cde2274a 100644 --- a/drivers/net/ethernet/marvell/sky2.c +++ b/drivers/net/ethernet/marvell/sky2.c @@ -4544,7 +4544,7 @@ static int sky2_debug_show(struct seq_file *seq, void *v) sky2_read32(hw, B0_Y2_SP_ICR)); if (!netif_running(dev)) { - seq_printf(seq, "network not running\n"); + seq_puts(seq, "network not running\n"); return 0; }