Message ID | 20190213054658.31598-1-cgxu519@gmx.com (mailing list archive) |
---|---|
State | Accepted, archived |
Delegated to: | Mike Snitzer |
Headers | show
Return-Path: <dm-devel-bounces@redhat.com> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 49FE41390 for <patchwork-dm-devel@patchwork.kernel.org>; Wed, 13 Feb 2019 10:34:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 369691FFE4 for <patchwork-dm-devel@patchwork.kernel.org>; Wed, 13 Feb 2019 10:34:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2A3FB2BDEB; Wed, 13 Feb 2019 10:34:59 +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=-7.9 required=2.0 tests=BAYES_00,FREEMAIL_FROM, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id F0FED1FFE4 for <patchwork-dm-devel@patchwork.kernel.org>; Wed, 13 Feb 2019 10:34:57 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 73A1CC06021E; Wed, 13 Feb 2019 10:34:56 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 30C915D9C5; Wed, 13 Feb 2019 10:34:56 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 58EEF3F604; Wed, 13 Feb 2019 10:34:53 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x1D5le9U002829 for <dm-devel@listman.util.phx.redhat.com>; Wed, 13 Feb 2019 00:47:40 -0500 Received: by smtp.corp.redhat.com (Postfix) id 48D711969F; Wed, 13 Feb 2019 05:47:40 +0000 (UTC) Delivered-To: dm-devel@redhat.com Received: from mx1.redhat.com (ext-mx02.extmail.prod.ext.phx2.redhat.com [10.5.110.26]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 8C58460BE8; Wed, 13 Feb 2019 05:47:33 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 81E2189ACC; Wed, 13 Feb 2019 05:47:31 +0000 (UTC) Received: from localhost.localdomain ([218.18.229.179]) by mail.gmx.com (mrgmx002 [212.227.17.184]) with ESMTPSA (Nemesis) id 0MaIPo-1geSMq2qZE-00JuMu; Wed, 13 Feb 2019 06:47:29 +0100 From: Chengguang Xu <cgxu519@gmx.com> To: agk@redhat.com, snitzer@redhat.com Date: Wed, 13 Feb 2019 13:46:56 +0800 Message-Id: <20190213054658.31598-1-cgxu519@gmx.com> MIME-Version: 1.0 X-Provags-ID: V03:K1:ZLDqO+4mfQpmhlZoN8lRq7Pfj+nMXraN1xyLHkErbb5IXIA2ujK cs0q0kp3QvsjwCAIB1OnVgXxl39eSCm1iGjanpy/+TpLRAyg7GyhE8uux4/nAuvrxqtglqt bEzoIyE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R3laWDGbl3tdlpUTZEdKg9cztjKPEcMcW X-Greylist: Sender passed SPF test, Sender IP whitelisted by DNSRBL, ACL 216 matched, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Wed, 13 Feb 2019 05:47:32 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Wed, 13 Feb 2019 05:47:32 +0000 (UTC) for IP:'212.227.15.19' DOMAIN:'mout.gmx.net' HELO:'mout.gmx.net' FROM:'cgxu519@gmx.com' RCPT:'' X-RedHat-Spam-Score: -0.45 (FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS) 212.227.15.19 mout.gmx.net 212.227.15.19 mout.gmx.net <cgxu519@gmx.com> X-Scanned-By: MIMEDefang 2.78 on 10.5.110.26 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-loop: dm-devel@redhat.com X-Mailman-Approved-At: Wed, 13 Feb 2019 05:34:52 -0500 Cc: Chengguang Xu <cgxu519@gmx.com>, dm-devel@redhat.com Subject: [dm-devel] [PATCH 1/3] dm: remove redundant unlikely annotation in dm-integrity.c X-BeenThere: dm-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: device-mapper development <dm-devel.redhat.com> List-Unsubscribe: <https://www.redhat.com/mailman/options/dm-devel>, <mailto:dm-devel-request@redhat.com?subject=unsubscribe> List-Archive: <https://www.redhat.com/archives/dm-devel> List-Post: <mailto:dm-devel@redhat.com> List-Help: <mailto:dm-devel-request@redhat.com?subject=help> List-Subscribe: <https://www.redhat.com/mailman/listinfo/dm-devel>, <mailto:dm-devel-request@redhat.com?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Wed, 13 Feb 2019 10:34:57 +0000 (UTC) X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
[1/3] dm: remove redundant unlikely annotation in dm-integrity.c
|
expand
|
diff --git a/drivers/md/dm-integrity.c b/drivers/md/dm-integrity.c index 457200ca6287..f1ab81b19de9 100644 --- a/drivers/md/dm-integrity.c +++ b/drivers/md/dm-integrity.c @@ -1122,7 +1122,7 @@ static int dm_integrity_rw_tag(struct dm_integrity_c *ic, unsigned char *tag, se return r; data = dm_bufio_read(ic->bufio, *metadata_block, &b); - if (unlikely(IS_ERR(data))) + if (IS_ERR(data)) return PTR_ERR(data); to_copy = min((1U << SECTOR_SHIFT << ic->log2_buffer_sectors) - *metadata_offset, total_size);
unlikely has already included in IS_ERR(), so just remove redundant unlikely annotation. Signed-off-by: Chengguang Xu <cgxu519@gmx.com> --- drivers/md/dm-integrity.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)