Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp2563879rwi; Tue, 1 Nov 2022 09:05:35 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6IE+0jvAvpd7bC2xsoVFLOvHAeJjx2mq4hTOK/YNG85HbmtBhODiEM0Q/kV01A/dYrQYSC X-Received: by 2002:a17:907:6da3:b0:78e:2a5f:5aaf with SMTP id sb35-20020a1709076da300b0078e2a5f5aafmr18940171ejc.554.1667318734937; Tue, 01 Nov 2022 09:05:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667318734; cv=none; d=google.com; s=arc-20160816; b=UY6n0oNfwr1wmmoyXqafFjSdSqphG2hv86cCWQ5Qb3TJzi/eV78WswMu0A7imqXPCj BZKZyoTy/tdJZ1PdreHb4D73Hanm+hvK7zMs6UAx0o2laRKlNbBUOgYuXpiu75zG8jWh vnYLDUe1VzhT5Jtl0XywiLgfQQIV6vf5nhvsQiS3UjnBH/mFVUrsaxkeILS+XDvziv5j C1qRVjCdwZWXzG9R2L8ROcVQ9jfmmwd4Ryr7LEptq6+nK1PoQ3AAhg2uKS9aB2SWnbJ+ rxwWfkWE3M9BQkA0Iuk3GLnTIatkKQSN702q0mi3fpeXTKPhC+b7+vm0DIH7EXiYCqT5 mp9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=+qgJIBP+WfUFGan0H3FFQDG8E59nIenU+axObgJbwJU=; b=JjbsBYkoXqgnUWOFn3D0nKpvyjDIbU9ByWVY0673wavT284FudXFhqLwhG+tADSE+s dFtXS6z3ETkwPJXYc4i2OaoYgNPReLE0z4wJp2383EHfcDVfuRI7Fi+z1fQHjow5L9C3 W7y9QJA3yYqnufUfEcMoC2TrXfPvVnYh43jndgA0T8hpQ0BiKXVSaAFdqIP4d+j6i7L/ 1ObyYoYfIQULt4Q8FRoaXzbVHNZth5RM2a2pTq/DBjNpkPFHhyhb+yy2nzjKR0nlOPh4 XPKOx6QlWz7qK0isqXyx8C8XlrGUo4y+SySdWNI4e36JjHDDkPGu8EwD9wIdBy88I7Pr 7+UA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ARUXTBII; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ca7-20020aa7cd67000000b0045caa8bf80bsi10660182edb.307.2022.11.01.09.05.10; Tue, 01 Nov 2022 09:05:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ARUXTBII; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230064AbiKAPia (ORCPT + 96 others); Tue, 1 Nov 2022 11:38:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230238AbiKAPi2 (ORCPT ); Tue, 1 Nov 2022 11:38:28 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 86DD7120A7 for ; Tue, 1 Nov 2022 08:38:27 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 23AF561644 for ; Tue, 1 Nov 2022 15:38:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B5AD7C433C1; Tue, 1 Nov 2022 15:38:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1667317106; bh=eLNcs9IHbuiYQVyORygDQfCWPOxlH6OpvBlG7I13D+Q=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=ARUXTBIILZCmDTJunf4wCNgC12sbCi57dUsh0OextE0Kbq7AUrlpoCYB19J+BrAM+ VLS5HcuiozLjG9QmI3CqaVknLtnuZqsIwv2UJORDT5+QltRLFLr5OFiyYj94/A/DjO 2Cdb/XZJv7k7r7hHpXFGHZoqGhdI2aA9doo1WK8eKBAuLohdLTz++OA0oLDMO4hQT2 WI+rkXyBO/tFIkhenkE3H0HCAKh6IExvd73qSZznTenbOa9strGavGebDnD+mIphMU dXDfFPsZSqBIufzl9XivGKqIULRgY1DF3xnCXEjDjfIJlcJYCTXrBo06H501QcW9hE O15nmsy4l2FVA== Message-ID: <35eb365d-7465-95a7-d280-fd39d59f31f5@kernel.org> Date: Tue, 1 Nov 2022 23:38:24 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.4.0 Subject: Re: [PATCH] f2fs: replace ternary operator with max() Content-Language: en-US To: wangkailong@jari.cn, jaegeuk@kernel.org Cc: linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org References: <44b06118.3c.18424382765.Coremail.wangkailong@jari.cn> From: Chao Yu In-Reply-To: <44b06118.3c.18424382765.Coremail.wangkailong@jari.cn> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-8.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2022/10/29 22:49, wangkailong@jari.cn wrote: > Fix the following coccicheck warning: > > ./fs/f2fs/segment.c:877:24-25: WARNING opportunity for max() > > Signed-off-by: KaiLong Wang Reviewed-by: Chao Yu Thanks,