Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp56333imm; Thu, 30 Aug 2018 15:38:30 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYu7hjTt30gV6/VztZbRVvhzYKNAhtSvG56BiTkCSYj1z7dqwVuOInHPFYq2Sr6pNu+FKfn X-Received: by 2002:a62:858c:: with SMTP id m12-v6mr12637908pfk.173.1535668709997; Thu, 30 Aug 2018 15:38:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535668709; cv=none; d=google.com; s=arc-20160816; b=oD93T/kNEiFGU9LiQ2/eS0Gn1Q+g6HUekeKmlmteNO8rJZfDi8qmWQfwsoHqIiWMlo o+AgybRO+HcLzKX6HwoNM5W95EjnNY/ukqdnoxITtrsUFyelcrroQfD2YFlGqJ8z8qbD cPG6enMEHb2IhaV1ZfvdJtdc7QDPCfyHX2y8bzcmJrf3H6asEQl964dNkr5yU0rqlyzf tz7QWamJ1WzKlXsXPIJrE/ZKTV+v73/j3EDsad1kEDvhyIqrQyUALwwsh8o59xxQ4hNE WWC9IgDDkeKgG1bwyXCISF3fGgo6iM/pZaXMhTJeR7ka6UL0hA3dsdB1Os/UztjokFxK oHXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=M3yi/b50a0XY795tJCMctb4VXUPgSddhVl6uXEIoobA=; b=xR2Ue7Ml9MeZhK91Cmw+5BtKroI5Lvp219LIZsnlpjFag2SARY3LepULJsZujx6UIJ fTT5TOZRdM6fiP1oho2vXKc+a8yyNrUx83VpFVqfbSCOuBznqU1PR1hc+rShwHO95Ejn TQu9WEMPTK0t6cYtapMbqHN+TkQN+a8Vn0pUWW8Ns0co9vAz2y0fRAaE4hUstc986SYB sNcv5ahgDxaoVybYBE7VHV+5PKIwFpcs82I9DQ4wF6QfJ5fxhKvmwPNogsCTx7EYo4W7 76G7fkBwWXTrwaDuSY3M1Sa0yIecP3hm4GWjBChBZguw5i/ulO+LM2yvkmBllKHkG4cK Q9tQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=XkGE2q7w; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q74-v6si8609314pfq.32.2018.08.30.15.38.15; Thu, 30 Aug 2018 15:38:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=XkGE2q7w; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727687AbeHaCkL (ORCPT + 99 others); Thu, 30 Aug 2018 22:40:11 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:41358 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727258AbeHaCkJ (ORCPT ); Thu, 30 Aug 2018 22:40:09 -0400 Received: by mail-lj1-f193.google.com with SMTP id y17-v6so8565008ljy.8 for ; Thu, 30 Aug 2018 15:35:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=M3yi/b50a0XY795tJCMctb4VXUPgSddhVl6uXEIoobA=; b=XkGE2q7wmFkqBx8xc0CG5vLbzZalOIzfNsdRGVcTD2mPyZ+GxY1FUQ96mqbu6GoGn0 kjDjV9HrsIi0pkdTInv92lT38NVMB3hhe6jZEAufXvuKggOsY5LBAdMltqL4nmpLFcvZ yuW/9/e/3FMiscDDYCh3GcoNmGtoChhMisHfp/SYFRconrvRZZn7uNupSrw02eOoKax1 f71PmKE7De5zTG/IaxwVz9ErGMf08NE4Rufe7xBPRzV25e47LS5Z5ZrsipyPtxdvl9iM kHgv4YzW4pAotcAK99yV16iBIZ+uSkdMb9uedW6hpFSccfkL23onxmydAyPRE/ljJFak syFA== 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:in-reply-to :references; bh=M3yi/b50a0XY795tJCMctb4VXUPgSddhVl6uXEIoobA=; b=VItZKoAZI9HkJzCR/1SZ/qqS02Bje1yt7T+Je/CPicj1YppfWvUuQc24jO26B+e0I8 TvyaMce3xEQieORF2+asIyc2oxuZJlhap3f0llMkutdHyJpgsDLqeng0BLsou/9US9Z4 AjAItMIN9dDZ5fgtKxQwU91UUPgOEfoeL3XntsRMm/RbZsQ9CvO/Arrn/vH6c0Lx9f+B 4uLuEXr2Zhb6/dr2tNC3ICMUECXPMx1E6EOZgZo0pGsa+/oh0L1AW+J/OzLK369L4len RAfCo8PL71+OXrEiHNaMMdXtr758j5qNNEfMLuH/inL9eWNXBeKzaKWsltaLU5wPteAp C6EQ== X-Gm-Message-State: APzg51BNKRODuglWYt5taOlXV1lI1x3hK1yGwAxKQ8/e9SbQl3uts4b9 KXMOb35LE/fvxWOJnMTG3zHOrYcT7pQ= X-Received: by 2002:a2e:5617:: with SMTP id k23-v6mr8320166ljb.86.1535668544326; Thu, 30 Aug 2018 15:35:44 -0700 (PDT) Received: from Mort.jumbo.freeair (91-159-62-202.elisa-laajakaista.fi. [91.159.62.202]) by smtp.gmail.com with ESMTPSA id u28-v6sm1455376ljd.61.2018.08.30.15.35.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Aug 2018 15:35:43 -0700 (PDT) From: Igor Stoppa X-Google-Original-From: Igor Stoppa To: linux-kernel@vger.kernel.org Cc: igor.stoppa@gmail.com, Igor Stoppa , Mike Snitzer , Alasdair Kergon Subject: [PATCH 15/23] lvm: device mapper: remove unnecessary unlikely() Date: Fri, 31 Aug 2018 01:34:21 +0300 Message-Id: <20180830223429.30051-16-igor.stoppa@huawei.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180830223429.30051-1-igor.stoppa@huawei.com> References: <20180830223429.30051-1-igor.stoppa@huawei.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org WARN_ON() already contains an unlikely(), so it's not necessary to wrap it into another. Signed-off-by: Igor Stoppa Cc: Mike Snitzer Cc: Alasdair Kergon --- drivers/md/dm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/md/dm.c b/drivers/md/dm.c index 20f7e4ef5342..0f0f8547106d 100644 --- a/drivers/md/dm.c +++ b/drivers/md/dm.c @@ -1653,7 +1653,7 @@ static blk_qc_t __process_bio(struct mapped_device *md, * Defend against IO still getting in during teardown * - as was seen for a time with nvme-fcloop */ - if (unlikely(WARN_ON_ONCE(!ti || !dm_target_is_valid(ti)))) { + if (WARN_ON_ONCE(!ti || !dm_target_is_valid(ti))) { error = -EIO; goto out; } -- 2.17.1