From patchwork Sat Dec 9 11:45:24 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Carpenter X-Patchwork-Id: 10103691 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 8A8A360329 for ; Sat, 9 Dec 2017 11:50:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 86C2028F2B for ; Sat, 9 Dec 2017 11:50:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7B81728FEC; Sat, 9 Dec 2017 11:50:44 +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.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, UNPARSEABLE_RELAY 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 0E60528F2B for ; Sat, 9 Dec 2017 11:50:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751268AbdLILun (ORCPT ); Sat, 9 Dec 2017 06:50:43 -0500 Received: from userp2120.oracle.com ([156.151.31.85]:53720 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751221AbdLILun (ORCPT ); Sat, 9 Dec 2017 06:50:43 -0500 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.21/8.16.0.21) with SMTP id vB9BlDaw058135; Sat, 9 Dec 2017 11:50:34 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : mime-version : content-type; s=corp-2017-10-26; bh=ns2rPVrskMngkT5wQ4jj2kohRQs3xzVBn62CrysvnOY=; b=G54qcQWqbAnYR7kUQrNm/zOJtpayK5s7VYgRmEOwbMoyskaPAq/cIQ7J0p7FP/fZydf2 YFGxixmYYFWrAPQblMfI5usABVnFuwKVQUjft3JFCHAOvh302oWN0deaisA+Q2HRcZvs n8FSNSSJgOBCMZM2+iVgsZBL71zO+W1NGmlsL0YrBdbviTPgnFvRkPPSTpxw38x+0zTe gmXhjqglNxUyVdADj8x8mQzpFHEnLh0Bi6VS4LnC0RKBzT2bcqfyoZjeOLjoYevNvXQQ O5guIHhRdUFuqXzEYHqWd87OBW2I0MaGte+MHMqZkokxysBWwKAII3GwD4fYj2w9OxjD DA== Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp2120.oracle.com with ESMTP id 2erf7qg0au-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 09 Dec 2017 11:50:34 +0000 Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id vB9BjXmB014739 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 9 Dec 2017 11:45:33 GMT Received: from abhmp0001.oracle.com (abhmp0001.oracle.com [141.146.116.7]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id vB9BjXon005416; Sat, 9 Dec 2017 11:45:33 GMT Received: from mwanda (/197.157.34.162) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sat, 09 Dec 2017 03:45:32 -0800 Date: Sat, 9 Dec 2017 14:45:24 +0300 From: Dan Carpenter To: "James E.J. Bottomley" , Helge Deller Cc: linux-parisc@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: [PATCH] parisc: Add missing curly braces in puts() Message-ID: <20171209114524.kwsvkd4ui5jei4r3@mwanda> MIME-Version: 1.0 Content-Disposition: inline X-Mailer: git-send-email haha only kidding User-Agent: NeoMutt/20170609 (1.8.3) X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8739 signatures=668644 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=783 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1712090168 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. Which is true. Fixes: 2f3c7b8137ef ("parisc: Add core code for self-extracting kernel") Signed-off-by: Dan Carpenter --- 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..432d33804a86 100644 --- a/arch/parisc/boot/compressed/misc.c +++ b/arch/parisc/boot/compressed/misc.c @@ -121,10 +121,11 @@ int puts(const char *s) const char *nuline = s; while ((nuline = strchr(s, '\n')) != NULL) { - if (nuline != s) + if (nuline != s) { pdc_iodc_print(s, nuline - s); pdc_iodc_print("\r\n", 2); s = nuline + 1; + } } if (*s != '\0') pdc_iodc_print(s, strlen(s));