From patchwork Tue Dec 12 20:32:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Helge Deller X-Patchwork-Id: 10108235 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D9A06602C2 for ; Tue, 12 Dec 2017 20:32:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C06131FFF9 for ; Tue, 12 Dec 2017 20:32:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B295C27C2D; Tue, 12 Dec 2017 20:32:33 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3D30E1FFF9 for ; Tue, 12 Dec 2017 20:32:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751949AbdLLUcc (ORCPT ); Tue, 12 Dec 2017 15:32:32 -0500 Received: from mout.gmx.net ([212.227.15.18]:62624 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751281AbdLLUcb (ORCPT ); Tue, 12 Dec 2017 15:32:31 -0500 Received: from ls3530.fritz.box ([193.159.16.240]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MarNa-1ejGgq3kB0-00KQlB; Tue, 12 Dec 2017 21:32:18 +0100 Date: Tue, 12 Dec 2017 21:32:16 +0100 From: Helge Deller To: linux-parisc@vger.kernel.org, James Bottomley , John David Anglin Cc: Dan Carpenter Subject: [PATCH] parisc: Fix indenting in puts() Message-ID: <20171212203216.GA13832@ls3530.fritz.box> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.9.1 (2017-09-22) X-Provags-ID: V03:K0:KoqedtkEq2dvcRjQTEGvICFAkS/7VJSrI13fn7ws9+VErfKAnQS 5Ku9irEYDPwOnkEB3x9pEUSem8QUKSmEwQb59j6i7rXSaLbi7NYipF2MvMiFfpNxunggab2 /9q9mSIT61pwqvIFSeiCNw3LoBQvB0pO9XfOEQZNY/QSIxJaXimMtM60cm7ETIEsG8T1l1/ uDHp9kRi0n3bh+S65qBpA== X-UI-Out-Filterresults: notjunk:1; V01:K0:UqeNYsLfQhQ=:cc5w1zIAH0yx9npcMzK58/ XGxfa+njhbGFpZ+9e+gweiasfoRqnIuPeDMCHbHdwSCh4ukwK6DPgyOqs3+Dc8euawj1JAdMQ zfSZuPDFhGvsFFAZNZ/kPB+TJ5oGxx1doYaXrJ7MDeiddYtE7pehQlFS08BEasg+Htzq4lxQv bxdzwURemxGuY9LSY2Rie9DWIancwJm329RtU+BM6SFaAjOaSZSzSHQ5vqnh8luPp7ORypdSe sBA17OBiRk905/GfsL05qnyeAL/SkrzhJ7HaonfB7Q6BDUp559cdPVnC4j0OM6ZMjS1g5jKsB 1QRLC06u/AoO+GtwbsVzVgRC24wy1adIPXOPoxHev1HRqJPyWikOnz2usJ+k+R+iB67wA6N9H /dsYYYtUOJx2MUZIYcJxNiu0XuKPak1fXsoh2V/JARSsT6T174NHLLt7RXzE+QYYod5WSXBRY NIQDQGvtfyJ7Jbf1Kdjp43vx7s+0udFyAgHnkdjB3bL73n1blF+j0tKVGU2k4STlIRyh9RZjO vBToiituodVezJATdOqvYNSsBqsTfZ699hwAH1S+Lotr9rVqH9WDWML2b6u9dVDuGqhDWMzSd aYwRe7A6avtsbraty4VQ+QUxB1/XG7nztmO+nFVBG0p5MhYKBmudJF5dj6XfopA+LdRnq4YzG u89YCasUDfluGstKdyHg5Izbd25s6bRuJk/iVKcdYsgRYlS4giFmbjBtkGop/WNhx/ouMpifr ZPx22tkLhvGqHIxBinOjS4NBtVK6SBQwGgQZ6B5dd5kE+dUmLwKD2PWi614X+zqgqlCpbOEuf yBz8Ln32BRJW5m/00N6BS6BosMoww== Sender: linux-parisc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-parisc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Static analysis tools complain that we intended to have curly braces around this indent block. In this case this assumption is wrong, so fix the indenting. Fixes: 2f3c7b8137ef ("parisc: Add core code for self-extracting kernel") Reported-by: Dan Carpenter Signed-off-by: Helge Deller --- To unsubscribe from this list: send the line "unsubscribe linux-parisc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/parisc/boot/compressed/misc.c b/arch/parisc/boot/compressed/misc.c index 9345b44b86f0..f57118e1f6b4 100644 --- a/arch/parisc/boot/compressed/misc.c +++ b/arch/parisc/boot/compressed/misc.c @@ -123,8 +123,8 @@ int puts(const char *s) while ((nuline = strchr(s, '\n')) != NULL) { if (nuline != s) pdc_iodc_print(s, nuline - s); - pdc_iodc_print("\r\n", 2); - s = nuline + 1; + pdc_iodc_print("\r\n", 2); + s = nuline + 1; } if (*s != '\0') pdc_iodc_print(s, strlen(s));