Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp6152360ioo; Wed, 1 Jun 2022 23:23:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyNYxu01AIOx5s+5ig2DbSdotJBcdpF2/kJM9VPkiN6GVYMvzlu/wFksgGhArVTFlRCsUiK X-Received: by 2002:a05:6402:1f07:b0:42a:9efb:71b1 with SMTP id b7-20020a0564021f0700b0042a9efb71b1mr3505619edb.397.1654151015148; Wed, 01 Jun 2022 23:23:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654151015; cv=none; d=google.com; s=arc-20160816; b=nro11gkAdJgfaxwoe1wLWVMuvXFR2GKCidgFxG7tVxkbcmYHCp9smaa3tI9n8kcAG/ j32byfs6iYEs2cXDPuKim4Hs5lAGjYvRJNJ9bi49RDlx0Z9WZxdwCKl2g3x6GJYXzCEq xTZlbwvczB9wd5uQoO0sI5fltSwrxmR6px0FOmQS9BkFaaoDba3202l/DMxEh3KbblDK PwUVrqaFYwwXRsp1eNXtyNvAbKxZ5B24gw8/YCxEanPr21R/b63V226xTBd+J7LUXkbY O5Of5ito15leG23ZD5Bf5u3/JUgTqv3lw5QPXpbV2iuDAp8stmCivrq2uciAop5gmSSa WecQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=REdsg4Qm2rOvmxTo7PQ8aKP0GhWltRmkodRu4hGrBTs=; b=QR9gjrrbORcCNYk5y9vXWjiWBUeTZ++mXbmC/0m3UJVGdU2dgNEEOH4LapeO0MK1iH Kcjv88FqiYVO6Qy5INwaZaxPVnAY8APkY4lTpuzlt1NdVuNQ1tiHGGH6MRWsZk60iYBP bB3pF1/AbiePrn3IIa09P1PHmVl2Vtdp+ptULeMVbsN0VyhE9ceURm0SUEz/td+MeOkk J09fyWrewL/vs+MqZZeZXtAwV2AUYK92Kf2cYwt1lsJeCdLK1ql2m7pA/haadeJfZqfs cK6m4zamJwZtkBWosvc0EdY13AV4k3sblS0BIBiAe+NzQNR4pG2gjbOiJmyD7Svetdbk 5B8w== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d3-20020a17090648c300b006fec271359asi3828124ejt.57.2022.06.01.23.23.09; Wed, 01 Jun 2022 23:23:35 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229655AbiFBEAZ (ORCPT + 99 others); Thu, 2 Jun 2022 00:00:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50608 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229460AbiFBEAW (ORCPT ); Thu, 2 Jun 2022 00:00:22 -0400 Received: from out30-42.freemail.mail.aliyun.com (out30-42.freemail.mail.aliyun.com [115.124.30.42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 13B281D5016; Wed, 1 Jun 2022 21:00:20 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R101e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=alimailimapcm10staff010182156082;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=7;SR=0;TI=SMTPD_---0VF8otVW_1654142413; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VF8otVW_1654142413) by smtp.aliyun-inc.com(127.0.0.1); Thu, 02 Jun 2022 12:00:18 +0800 From: Jiapeng Chong To: ardb@kernel.org Cc: chenhuacai@kernel.org, kernel@xen0n.name, linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH] LoongArch: Fix unsigned expression compared with zero Date: Thu, 2 Jun 2022 12:00:12 +0800 Message-Id: <20220602040012.19756-1-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL 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 Fix the following coccicheck warnings: ./arch/loongarch/kernel/efi.c:157:5-11: WARNING: Unsigned expression compared with zero: status < 0. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- arch/loongarch/kernel/efi.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/arch/loongarch/kernel/efi.c b/arch/loongarch/kernel/efi.c index d36a325a990c..2f25a7fe0868 100644 --- a/arch/loongarch/kernel/efi.c +++ b/arch/loongarch/kernel/efi.c @@ -145,16 +145,13 @@ static int __init set_virtual_map(void) void __init efi_runtime_init(void) { - efi_status_t status; - if (!efi_enabled(EFI_BOOT)) return; if (!efi_systab->runtime) return; - status = set_virtual_map(); - if (status < 0) + if (set_virtual_map() < 0) return; if (efi_runtime_disabled()) { -- 2.20.1.7.g153144c