Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp5174178pxu; Thu, 10 Dec 2020 15:09:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJwY7lqRxQCRmJ0W0lyQ8mceKQR2HNWlB+R1mcOTfebT4mTz6njkDIQUacqmV8EEdWWjC5X+ X-Received: by 2002:aa7:dacf:: with SMTP id x15mr9016129eds.134.1607641744397; Thu, 10 Dec 2020 15:09:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607641744; cv=none; d=google.com; s=arc-20160816; b=df7QGB7rmrPlGjc+XSTh3JjIlgnejVyVq60qF2nou/QHfad+dNPDnOzAsIj8jNHpD1 OZmzan1T3Ulfia+23YanhfJxGqwpCkZDhVePWB32sVw1c+uvPCV8bn63dQ2zyqYAHMj/ JL5KwrB9isdbm8Yi0Z4qYyDCZ6/YROsknyRHTIocxcAGCbEaJj9w9m5E246RG61uHwdJ OVt/q/eW/vCzXzapR/VRIIN3c8Z4mrRvkMMIwGTmVCIAVVk0q04ECeFwzJjT6XTm0A3g D94yI9gl7Nq+j81c2TCj0m1882VuNxVtdu6zHtomw6ZIg6zQxdbiXnWH4KP+Y/BjHSq5 hUuA== 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=+q2ANgXKQF6RYDjmewUZC6+hxhimoyt6eFlyTIM0N7A=; b=OHMLQXVxgD3tSqEyroZEdCRb5nmiiTg1XovL1++7cwLJtK+KaL/QP9JVbeVbuuYs7z pXceEwWXqki1c7eENT9ER3a7V18bjFcTl46bJX53HXNXC6UufX0h33wVnS2kA/UZzQEv EWW9mdojPIV5MyPC1p5QFg7q8Fhc4wcllNRAAXvizGEonUD4Bq050kaFRcaStUQrPCBJ eX88MAuJi4ywp474y/IJ0qzOpzitEVG9STPN0JTYo2XkYwerYRVkHrcaI7kaJpfAwpzu J9sP2g3X7QODjxT9I/CXY3IDJ30pOLISVwnuK82VvzKr+9BXun43uybUSHXJNbsBaGzj Fecg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j22si3511266edh.496.2020.12.10.15.08.41; Thu, 10 Dec 2020 15:09:04 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388775AbgLJJXx (ORCPT + 99 others); Thu, 10 Dec 2020 04:23:53 -0500 Received: from s2.neomailbox.net ([5.148.176.60]:20485 "EHLO s2.neomailbox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731643AbgLJJXi (ORCPT ); Thu, 10 Dec 2020 04:23:38 -0500 From: Antonio Quartulli To: Alasdair Kergon , Mike Snitzer , dm-devel@redhat.com, linux-kernel@vger.kernel.org Cc: Antonio Quartulli Subject: [PATCH] dm ebs: avoid double unlikely() notation when using IS_ERR() Date: Thu, 10 Dec 2020 09:50:49 +0100 Message-Id: <20201210085049.14528-1-a@unstable.cc> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The definition of IS_ERR() already applies the unlikely() notation when checking the error status of the passed pointer. For this reason there is no need to have the same notation outside of IS_ERR() itself. Clean up code by removing redundant notation. Signed-off-by: Antonio Quartulli --- drivers/md/dm-ebs-target.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/md/dm-ebs-target.c b/drivers/md/dm-ebs-target.c index cb85610527c2..55bcfb74f51f 100644 --- a/drivers/md/dm-ebs-target.c +++ b/drivers/md/dm-ebs-target.c @@ -86,7 +86,7 @@ static int __ebs_rw_bvec(struct ebs_c *ec, int rw, struct bio_vec *bv, struct bv else ba = dm_bufio_new(ec->bufio, block, &b); - if (unlikely(IS_ERR(ba))) { + if (IS_ERR(ba)) { /* * Carry on with next buffer, if any, to issue all possible * data but return error. -- 2.29.2