Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1743992pxk; Sat, 19 Sep 2020 00:29:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyESGXuNubkowAbPvj1o9IhdH5rbQdcci2GAjsiUzNzv5Id5goEL+OOUXPHTq/qLjNeQiZv X-Received: by 2002:aa7:dd4b:: with SMTP id o11mr41585936edw.251.1600500588865; Sat, 19 Sep 2020 00:29:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600500588; cv=none; d=google.com; s=arc-20160816; b=nV04jFvGD56chn0RIDGPloBVoCb9NJ/SrNh5YxGMhWEnKbV79247jpq0NvFW+ArmWC VW6EfI0j7mf7meTDsDtTfMaLnloy7+htTlgdTmxwv6SqxvFhv1ACtm3X4XJCxiTjHIyU zN2O5hiVcMJ0O/w+L4Lpi4pR2mgnRW5/0hk2es/iOg4afW8pWeCoWbe2Bw5fiqhywkzH KV8/w5nl73QnoEOJOngPXrc78+vqbKCtO62FpU8DfBoBfniJ1qBOM8YH0aDaXsVieLmQ iyUEOq/x7iuLIcb/Kxv49qIw4Elmw6g5sNX4mqviCD90PMgTPUigrTeyUIRWtDNaR0wl J6LA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=2bEftFKQeg7t1a3m+CntScYxnb1LsdZSJyYIcNndeZc=; b=vi9tz5m8f5hwmNBtefAFjMZBatw4sbBnT2no6rvFbbnQSMgQyNg5DI8F3lCyIsJcyn iDFe3l7fg9kNuNicEpicTuj0y+CIW+o9sb9Zgner9YPh6mCsBFkAyVXEqm/rKr/WNhxN YlW4jAoM9j2jyIYYScCXYwt38pez58XaQ8N6EeXvD6Sj/LA7BFxKUwWBjrktKsrCPfLM bzvmkgi5GRMZh9V8G3nHJyeQC1lb2RZCliMr6lArVpeYYhlLQ4m4aC5avwbG+y2sSMfA 0NLmguo8xjvXkpqyTlkt5yNDTuEm0xSghG2YtiM4PMJR4bPloJmPueoNQU+ypMSNqVCG hsdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=gyjOq5b4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u22si3767717edy.599.2020.09.19.00.29.24; Sat, 19 Sep 2020 00:29:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=gyjOq5b4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726202AbgISH2S (ORCPT + 99 others); Sat, 19 Sep 2020 03:28:18 -0400 Received: from us-smtp-2.mimecast.com ([207.211.31.81]:37831 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726112AbgISH2R (ORCPT ); Sat, 19 Sep 2020 03:28:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1600500496; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc; bh=2bEftFKQeg7t1a3m+CntScYxnb1LsdZSJyYIcNndeZc=; b=gyjOq5b4es+zHr9O2VR4mqLVSUifDiU+eCMR0K1uRcKP2POE+y1oTGKltyvpo5ZZEyJqTG 9v9LfitilsztQpd81TBVXM9gmYynzekC9GsWPrgpIvnaMId84QxUjQb3xIEMBN9NSCZLoj s1pDc6Y92XtXn9CvaH2im7dsNhoMi6k= Received: from mail-pf1-f197.google.com (mail-pf1-f197.google.com [209.85.210.197]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-241-aKuJLpWePe6RzT0xL_RAPw-1; Sat, 19 Sep 2020 03:28:14 -0400 X-MC-Unique: aKuJLpWePe6RzT0xL_RAPw-1 Received: by mail-pf1-f197.google.com with SMTP id y76so5089328pfb.10 for ; Sat, 19 Sep 2020 00:28:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=2bEftFKQeg7t1a3m+CntScYxnb1LsdZSJyYIcNndeZc=; b=bmdIyhlNI+nbXv/3Pb4pULruetSAc8S4xGwp/8o1oNb/mU8nBjbGE7nDYBRg4/A6oE iDxgciIsUmnIy9gtNuVw4Hit61NGrE3Vu5Hg9jwp4XCQ8Sp5F6q4mg8HPJp+b3Ky0ucQ STLE58IIsDxr5ikrL3LlwtSoHTPtlDd6EkrAkpWOqw+XvzowSgoMUtfxtus/TfuGMqsT R9PYSqah6A1cnSpTHbhmZUfBzJHHjKvFKflqX6Q/WGjLu5ZDeacKoBntXtuxcCOhwmFl NVXtlCsJ9Cn4pEVH5IFmaROioAWTA3o1lVZ7bAqXAx5TFA6s86lixmeoxRu+GtdI78g5 jO/w== X-Gm-Message-State: AOAM531/79I0sS5XsV1sGdJzwsFddPPqFLZ/2b2Lkh5lC2bQ7FrbFjBN 5IELJRezm9as4AVqbFr068I8RA3vHmTFN3ESAhkUNUJTa42lWxI/2FIHntztWuAzhz9zZyWlMAs Gvsb3MBSAsL1WuY+YBKVqBhfr X-Received: by 2002:a05:6a00:1695:b029:142:2501:34e4 with SMTP id k21-20020a056a001695b0290142250134e4mr18419835pfc.61.1600500493153; Sat, 19 Sep 2020 00:28:13 -0700 (PDT) X-Received: by 2002:a05:6a00:1695:b029:142:2501:34e4 with SMTP id k21-20020a056a001695b0290142250134e4mr18419820pfc.61.1600500492812; Sat, 19 Sep 2020 00:28:12 -0700 (PDT) Received: from xiangao.remote.csb ([209.132.188.80]) by smtp.gmail.com with ESMTPSA id s3sm5407381pfe.116.2020.09.19.00.28.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 19 Sep 2020 00:28:12 -0700 (PDT) From: Gao Xiang To: linux-erofs@lists.ozlabs.org, Chao Yu Cc: LKML , Chao Yu , Gao Xiang Subject: [PATCH v2 1/3] erofs: avoid unnecessary variable `err' Date: Sat, 19 Sep 2020 15:27:28 +0800 Message-Id: <20200919072730.24989-1-hsiangkao@redhat.com> X-Mailer: git-send-email 2.18.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org variable `err' in z_erofs_submit_queue() isn't useful here, remove it instead. Reviewed-by: Chao Yu Signed-off-by: Gao Xiang --- no change since v1. fs/erofs/zdata.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/fs/erofs/zdata.c b/fs/erofs/zdata.c index ac6cb73df192..e43684b23fdd 100644 --- a/fs/erofs/zdata.c +++ b/fs/erofs/zdata.c @@ -1190,7 +1190,6 @@ static void z_erofs_submit_queue(struct super_block *sb, do { struct page *page; - int err; page = pickup_page_for_submission(pcl, i++, pagepool, MNGD_MAPPING(sbi), @@ -1216,8 +1215,7 @@ static void z_erofs_submit_queue(struct super_block *sb, ++nr_bios; } - err = bio_add_page(bio, page, PAGE_SIZE, 0); - if (err < PAGE_SIZE) + if (bio_add_page(bio, page, PAGE_SIZE, 0) < PAGE_SIZE) goto submit_bio_retry; last_index = cur; -- 2.18.1