Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp55936imm; Thu, 30 Aug 2018 15:37:37 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZ63MC/u4OoAc1b+Cw3xqtXIH23cxj+KZCK0p6aFnE4iZrYFo4q2Y3Mxel9W6Avg9LPscH6 X-Received: by 2002:a63:1c1b:: with SMTP id c27-v6mr11970069pgc.48.1535668657132; Thu, 30 Aug 2018 15:37:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535668657; cv=none; d=google.com; s=arc-20160816; b=0QIdatxSTIyxBL+L4Fr0LYKryVotJ4wSNmDCCaSBT/1yFZu8Z3qeawrHJWCoCct8V0 aTDJwjPa9AXOOWHTd1ILaBt3UJgPkqzaJ7nHLmJPolPk0k9SeS2S7SICbjD9O4ONTJ+k NCXgQfZ7xT7A9n74tTpoUrqrX3oXdp8RrEfFdP14Yu091CLX2sNJxD7H9cr6x58h1cvb t8Vzbpma3CBCZA5S8ZhClurFWgDBxblrkYZoCEQqWKsNirSBDYe0qSrAQCe2H6Ky+M8G +YAEQR9tLjxgGt8dIoDk0fQj2k5pqXGn3YdZ4OEc+LSz19jkbzv6/dzQxwr6zdySli9g 74/A== 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=eBRbuymwF9MVHxtnZ+TXUvKdoBKuqYdJwQwOYSyNFQ4=; b=0BEvuqU71R2bOmcTkbJf3vaV6bi3XnCNmNCFnY8Blbvwc8acSl2xWSzGnNHlFnPzWg aKqWN+pkJnhW3o9WAHtlNED6NWF4CrRoSIuYqNP8e10AHPudvTQD230kHtnxn/i0hE7C ujB9GsN60pU3P96juao2zNLoy8mBzeDkUREGeSl67mOLw6UGRlkKxsaAWEzLYjqkWpXj Nznv8j//QycRiH9+rmUy/FM2xBA/X5U09iH9lKd2QNjjuNeg+rhs9IiO7zFWh2bpr+G3 KVCl7J8nD+p3jo56UOhKmeYkee4KtplzRYu8/fMsK0MZkCQsdm7e4KaRZI6kfsqDA2qA w63A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=lW9XK8YP; 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 m11-v6si8983239pga.618.2018.08.30.15.37.22; Thu, 30 Aug 2018 15:37:37 -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=lW9XK8YP; 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 S1727844AbeHaCk3 (ORCPT + 99 others); Thu, 30 Aug 2018 22:40:29 -0400 Received: from mail-lf1-f65.google.com ([209.85.167.65]:37961 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727818AbeHaCk2 (ORCPT ); Thu, 30 Aug 2018 22:40:28 -0400 Received: by mail-lf1-f65.google.com with SMTP id i7-v6so8480086lfh.5 for ; Thu, 30 Aug 2018 15:36:03 -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=eBRbuymwF9MVHxtnZ+TXUvKdoBKuqYdJwQwOYSyNFQ4=; b=lW9XK8YPaXpf+M5mJS4xcZWbX61BTMKmjgvs8m4JNNjW/GOZLiFR8fRfLCVp8ptMEk KlMu9eIBT/YqNTbVvhlbuNF1cuJBdbBymag8PUU3poxW1pqLmfxmnIsF069JgCRqp43D PJ72yl/0tgPMj3vbi+MBhkPhi5bFeV2CGpSoSddWzREP3RlgJhVdxRd2vtTSfdb3Dpzl 6OiFNCy1H84ROR7feyUhiPo8dOBtLrmy6p139WfdCu9EnrMMywgB0AbpvyHFsiuwWVRI mmBNNH7ajRygWC7klpSFvoK9sWhP6UBHdVEc1BtcxtF1mQG54RM7eDT4WJIK7gxauCBV ofDQ== 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=eBRbuymwF9MVHxtnZ+TXUvKdoBKuqYdJwQwOYSyNFQ4=; b=DKwp5cN1UOINdDL5Ay73F+Pqu6Y3uCRbR9cVyRTCeKQd4gzBF/wZ6vQ/23e06hBGtC JUvNacMaFdFYjP/dmuln9CS+M2fEQ9EAphKfKwsWcCA7cPmuTlOGrtD9TrujVhANVfBz CoPfhlhCbyoNOsbyEQo3fF/QsVPQvP49jwr1qwJzYTPfBRPDD0IvDH5iG7vphCbFwJTI iIi4u9wcu6b9wpy0QNrOYgeyykdYMi4hoxtbje5OTC19VtL1wo6yKASqDmdCd3MoQoqV D46zRJ1eJcJtYlCQQbcCan9EuMdlBofdMI/VBOpH3fZxo/xWJhPRtj5d7aDyZ7ByVhdf LwsQ== X-Gm-Message-State: APzg51AHFG0Bq44jQlOiQZmjLd9/yc0QB+CcHJgs7LdqWl3Ree/8yNcw UICOQk/14SQBJGAbPytOW+j6dvMe+nc= X-Received: by 2002:a19:1591:: with SMTP id 17-v6mr8336474lfv.141.1535668562377; Thu, 30 Aug 2018 15:36:02 -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.36.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Aug 2018 15:36:01 -0700 (PDT) From: Igor Stoppa X-Google-Original-From: Igor Stoppa To: linux-kernel@vger.kernel.org Cc: igor.stoppa@gmail.com, Igor Stoppa , "Martin K. Petersen" , "James E.J. Bottomley" Subject: [PATCH 23/23] scsi: remove unnecessary unlikely() Date: Fri, 31 Aug 2018 01:34:29 +0300 Message-Id: <20180830223429.30051-24-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 BUG_ON() already contains an unlikely(), there is no need for another one. Signed-off-by: Igor Stoppa Cc: "Martin K. Petersen" Cc: "James E.J. Bottomley" --- drivers/scsi/scsi_lib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c index 0adfb3bce0fd..aaa1819b0a69 100644 --- a/drivers/scsi/scsi_lib.c +++ b/drivers/scsi/scsi_lib.c @@ -1207,8 +1207,8 @@ int scsi_init_io(struct scsi_cmnd *cmd) count = blk_rq_map_integrity_sg(rq->q, rq->bio, prot_sdb->table.sgl); - BUG_ON(unlikely(count > ivecs)); - BUG_ON(unlikely(count > queue_max_integrity_segments(rq->q))); + BUG_ON(count > ivecs); + BUG_ON(count > queue_max_integrity_segments(rq->q)); cmd->prot_sdb = prot_sdb; cmd->prot_sdb->table.nents = count; -- 2.17.1