Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752153AbdL0PUR (ORCPT ); Wed, 27 Dec 2017 10:20:17 -0500 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:45852 "EHLO mail3-relais-sop.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752076AbdL0PUP (ORCPT ); Wed, 27 Dec 2017 10:20:15 -0500 X-IronPort-AV: E=Sophos;i="5.45,466,1508796000"; d="scan'208";a="249567221" From: Julia Lawall To: linux-kernel@vger.kernel.org Cc: kernel-janitors@vger.kernel.org Subject: [PATCH 01/12] dac960: drop unneeded newline Date: Wed, 27 Dec 2017 15:51:34 +0100 Message-Id: <1514386305-7402-2-git-send-email-Julia.Lawall@lip6.fr> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1514386305-7402-1-git-send-email-Julia.Lawall@lip6.fr> References: <1514386305-7402-1-git-send-email-Julia.Lawall@lip6.fr> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1317 Lines: 36 DAC960_Failure prints a newline at the end of the message string, so the message string does not need to include a newline explicitly. Done using Coccinelle. In the first case, the preceding spaces were also converted to a tab. In the second case, doing so would upset the indentation, so it was left as is. Signed-off-by: Julia Lawall --- drivers/block/DAC960.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/block/DAC960.c b/drivers/block/DAC960.c index 442e777..89cd83a 100644 --- a/drivers/block/DAC960.c +++ b/drivers/block/DAC960.c @@ -1344,7 +1344,7 @@ static bool DAC960_V1_EnableMemoryMailboxInterface(DAC960_Controller_T CommandMailbox.TypeX.CommandOpcode2 = 0x10; break; default: - DAC960_Failure(Controller, "Unknown Controller Type\n"); + DAC960_Failure(Controller, "Unknown Controller Type"); break; } return false; @@ -1527,7 +1527,7 @@ static bool DAC960_V2_EnableMemoryMailboxInterface(DAC960_Controller_T DAC960_LP_AcknowledgeHardwareMailboxStatus(ControllerBaseAddress); break; default: - DAC960_Failure(Controller, "Unknown Controller Type\n"); + DAC960_Failure(Controller, "Unknown Controller Type"); CommandStatus = DAC960_V2_AbormalCompletion; break; }