From patchwork Fri Jul 14 06:44:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: huzhi001@208suo.com X-Patchwork-Id: 13312995 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1D504EB64DA for ; Fri, 14 Jul 2023 06:44:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235132AbjGNGoY (ORCPT ); Fri, 14 Jul 2023 02:44:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36496 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232239AbjGNGoN (ORCPT ); Fri, 14 Jul 2023 02:44:13 -0400 Received: from mail.208.org (unknown [183.242.55.162]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 297AF30CA for ; Thu, 13 Jul 2023 23:44:09 -0700 (PDT) Received: from mail.208.org (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTP id 4R2MQF45VqzBR9sg for ; Fri, 14 Jul 2023 14:44:05 +0800 (CST) Authentication-Results: mail.208.org (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=208.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=208.org; h= content-transfer-encoding:content-type:message-id:user-agent :references:in-reply-to:subject:to:from:date:mime-version; s= dkim; t=1689317045; x=1691909046; bh=8qQymKzSaqSgCpyPyUdGZHKQac1 YCfpQGK6qdfDQU6I=; b=gBd1ms+1KiZnv8E/cqLluyb9570ZnFVvPKR4mGgyoeu ZpLns6r/NVnmqCo2S1m0612rq2rxAj89vjAWt+Nqyx3E3xJ1585KBwW7PRmBqlSh swCv8R3ITgs76gySos9RiogeMMSp18YDNPFMIwnN/v+ifyxuTZcoZhvwtorjolrs f2kRJKJbVpVf91HyLTx2Enni1WKaYW1qpweGOmuluJZvO/RrXaWXt1mgallp+QN/ swOmqGyxhx0gaLvvVGKDdT6xi/3/1+Othp3TysGPDczH6UP47B6MtbrclO6Lx+GC 3DHR0Eciy6xPEnUhwlXdMmN2nvr1AZgu7EmN0Y72pGw== X-Virus-Scanned: amavisd-new at mail.208.org Received: from mail.208.org ([127.0.0.1]) by mail.208.org (mail.208.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id gjBON9paMkpY for ; Fri, 14 Jul 2023 14:44:05 +0800 (CST) Received: from localhost (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTPSA id 4R2MQF1GKtzBJFS7; Fri, 14 Jul 2023 14:44:05 +0800 (CST) MIME-Version: 1.0 Date: Fri, 14 Jul 2023 14:44:05 +0800 From: huzhi001@208suo.com To: akpm@linux-foundation.org, adobriyan@gmail.com, fullspring2018@gmail.com, rdunlap@infradead.org Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: [PATCH] fs/proc: Fix four errors in array.c In-Reply-To: References: User-Agent: Roundcube Webmail Message-ID: X-Sender: huzhi001@208suo.com Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org The following checkpatch errors are removed: ERROR: trailing statements should be on next line ERROR: trailing statements should be on next line ERROR: trailing statements should be on next line ERROR: trailing statements should be on next line Signed-off-by: ZhiHu --- fs/proc/array.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/fs/proc/array.c b/fs/proc/array.c index d35bbf35a874..9cd8d703ade8 100644 --- a/fs/proc/array.c +++ b/fs/proc/array.c @@ -236,10 +236,14 @@ void render_sigset_t(struct seq_file *m, const char *header, int x = 0; i -= 4; - if (sigismember(set, i+1)) x |= 1; - if (sigismember(set, i+2)) x |= 2; - if (sigismember(set, i+3)) x |= 4; - if (sigismember(set, i+4)) x |= 8; + if (sigismember(set, i+1)) + x |= 1; + if (sigismember(set, i+2)) + x |= 2; + if (sigismember(set, i+3)) + x |= 4; + if (sigismember(set, i+4)) + x |= 8; seq_putc(m, hex_asc[x]); } while (i >= 4);