Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755020AbeAMMvo (ORCPT + 1 other); Sat, 13 Jan 2018 07:51:44 -0500 Received: from mout.web.de ([212.227.15.3]:64616 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754986AbeAMMvm (ORCPT ); Sat, 13 Jan 2018 07:51:42 -0500 To: linux-watchdog@vger.kernel.org, =?UTF-8?B?R8O8bnRlciBSw7Zjaw==?= , Wim Van Sebroeck Cc: LKML , kernel-janitors@vger.kernel.org From: SF Markus Elfring Subject: [PATCH] watchdog/ie6xx_wdt: Combine two seq_printf() calls into one call in ie6xx_wdt_dbg_show() Message-ID: <3b9880f2-2c21-8574-7659-74bc8e211852@users.sourceforge.net> Date: Sat, 13 Jan 2018 13:50:50 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:cWBIklxYjVAm+7Tq1149jf0MPwWZVouPCeRQkdKvJLYrCyAzbXg NtACL1Z8MYiWYFi3qzh1WkA5j+bqL1HU2twpIOZn71jyzfKKpaoVQ/hgfeBig8+GiLvgjhM H5DTAFPveX6unhAHVY4bTqmjeLIwcRn3+WdwGxlxWiSqTVzIkkyagGWOqLYIy9gPlSqViUD qSkEe9zHhKEk5u9rXPNfA== X-UI-Out-Filterresults: notjunk:1;V01:K0:5Jy0VdECg7Y=:/nZlHmtd6isa3eydEEs+00 afvkQhEmJcsSeySdcujTKQO3ptR85zvytiDudT+Rn8+7Edr+FMsDYkxpGZodW8x3N3KC502xy KYeZY3zbozAM8idUXTZHomK4V4xJDu7lMiRMqxprzkej2Wkar4/6R7m/sMzlrQZpmVbmYS39g D+CZ+cRskmz1+qSzlR9hEKVXpkHX1KsJA57afLwIAQHom3nLPhPXS/ocBTQ+yjTN7nBP8dMPM oukgy8wXoCA2mjHLtc5WXBhsLgOlgG408fKU4y3mOa5b8J9QTxntE63z5hAF5sKQP+/xAOc+M /cV+Dl22gSfAJZ7WQ2JY01Xlz7dC9kAVRgy21yFfpGLn3iQ5I9lS8pSxVQIEju4m+PDaCU54G pQhU1n0Tzp8sQlz77aKNLCjzBsyfXVyBc69JVxcKqzWgrXx2iAUudkdSKxPjstfpjxmOCGXS0 /l8clhP4VSl6adI1Boot5MjlJ7Jl//To/+ccnUlczpLP/yXRQYdOVNHH76pavt9a30nfy47Ub Ik4t/UAcpzBj6YRWm9Qv7/LXEY290fv88FoKIfntE0wzuTzabhIbKsWDMIzhKMc8il+4PgLdJ 70YB4g9tMsRWrXAytOxbsGR5NTcehA5zgrpcC/R4G28sBV9UTCbpqfX2Fz6XCO0js7Qdd6Zqr ySQH0nhwYTMEmw9R0xC3zjWRAw81JDlqvJ7i9i/p+kAw1cNdKoGr8o83i4i9PT+9jAqIt8MZY Iaj1sqtxZZrMybzb6Avs5x/pAAP6r73H8rZ2O/d6pZ23/HaL62QbCW8MFFu6dNMA91qvrdTap TIYFZnrs691c3t6/aUvzNWx20XM+O5V0cc87taK8fv0Etu7/kI= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: From: Markus Elfring Date: Sat, 13 Jan 2018 13:45:35 +0100 Some data were printed into a sequence by two separate function calls. Print the same data by a single function call instead. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/watchdog/ie6xx_wdt.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/watchdog/ie6xx_wdt.c b/drivers/watchdog/ie6xx_wdt.c index 78c2541f5d52..f2963cb21df7 100644 --- a/drivers/watchdog/ie6xx_wdt.c +++ b/drivers/watchdog/ie6xx_wdt.c @@ -205,10 +205,8 @@ static int ie6xx_wdt_dbg_show(struct seq_file *s, void *unused) inw(ie6xx_wdt_data.sch_wdtba + WDTCR)); seq_printf(s, "DCR = 0x%08x\n", inl(ie6xx_wdt_data.sch_wdtba + DCR)); - seq_printf(s, "WDTLR = 0x%08x\n", - inw(ie6xx_wdt_data.sch_wdtba + WDTLR)); - - seq_printf(s, "\n"); + seq_printf(s, "WDTLR = 0x%08x\n\n", + inw(ie6xx_wdt_data.sch_wdtba + WDTLR)); return 0; } -- 2.15.1