Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp55772imm; Thu, 30 Aug 2018 15:37:22 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdb2UXOGmnCeqLgiI/axUTS686uA8e0CNBu/eWnmMtrWwnTpTuJWYkHqrSkUmj/BLuECyLCZ X-Received: by 2002:a63:5e45:: with SMTP id s66-v6mr11594450pgb.151.1535668641996; Thu, 30 Aug 2018 15:37:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535668641; cv=none; d=google.com; s=arc-20160816; b=G9jGSSBCq/fmKYbbbYOHg/b4g256bpH0ppbJmpDDcBLs6a+V02g5TeTmaMZNZSZALB J/SVDyqrlwAhZLTMjVjiEfu+5Rl1DAhSrhPG0TCb0JN1FNfGwB2pnUMHQxL+zLYhDCXW yfLCt3mCZpPCt8nc92nOPUxc0FUIejkXyEvHo+92haFAphyjMAQdKcTeJ0ZSBzgz4IW3 PRfrTJbodNfp7vmuARxTtaKYuVNDdW07TYQug2GMGp1yV2HZ81k0VTwkBkZ1iyjm5ADN v/Utc7l6iSFFgWtpq3kPWahJneX3MMv4T6DK7QQxLn69hILQIYm1M3inaaRUXeQHx1jC 2hiA== 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=1Ao4i6KYatxBvADAMyrk6Yki9DjA9BZBgUj/62Uj8N8=; b=R5pw3WzKGdeMf8/nCz+HiurVY6B9DcTEvpydfMbeerxZKD5u5TAwMNR/Q9j72qYLYD QzJCmwpMl6IdaM+Ow4ncdis5xRoxFA1N1+zoOsJoaKW34Nvnn3feYxnXCiuvIAY9pcIo UEwTaf3P1hDwH0485nT6f2zBssLZxofDivbvujVx/g8b8j6VsBo+07lymQb7kBX4MzFZ iABZp5czkZiCZuKOhJNP60d3iiEQZ6h6IIpbhhDmzlQ+9rq+N3N+pOjFwNYCoVc+B4qL emPpg799sjIuSIlzbyWrqEfuRE4NihyNasuiVYw0zFss+fcQgbqmbjDFgFeMapSn1uz0 rTow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Zf99g8To; 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 t2-v6si7812662pge.64.2018.08.30.15.37.07; Thu, 30 Aug 2018 15:37:21 -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=Zf99g8To; 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 S1727725AbeHaCkN (ORCPT + 99 others); Thu, 30 Aug 2018 22:40:13 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:37403 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727258AbeHaCkN (ORCPT ); Thu, 30 Aug 2018 22:40:13 -0400 Received: by mail-lj1-f196.google.com with SMTP id v9-v6so8571465ljk.4 for ; Thu, 30 Aug 2018 15:35:48 -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=1Ao4i6KYatxBvADAMyrk6Yki9DjA9BZBgUj/62Uj8N8=; b=Zf99g8TocQXWmANewIlW+56oYmzQKia1opwKsM86FZFUbWZcF3O6Y15TUJ5E9ixdO/ 9475yOYUG83XbYMiJyYDvJFs2Jkh73r3I06+tyl7LSGGB01VVF078jUmFEWP/mCIZzFe iE/AaKXIudY0puFyrw5L4ZRu3xgC1QreJKVXNOTGTGWsU7vzKOPk/ALpgqo3yeIgfQij 5Ahcv6Qtx7pJrR38sW58/XmX+iWN4ZBY5FmfgkZuE+78DESk5y+JZohwM67rbjB3FFax OjvcMzyTRG5T7mtzq7hlI7OrK7Gkpb8FV1xWpRWg7ybfczp3GLtm41aT5nDvAg32SMYs iFeg== 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=1Ao4i6KYatxBvADAMyrk6Yki9DjA9BZBgUj/62Uj8N8=; b=XwJ2OXAZgQG9Eir93XgMQcbeBB6P7/hJBcY6dA8esh28Km9CEowA6jiS5weLeC83BN ZjkAjwx04t++0dzh9XExPvkuB2HA1u99n7tS+/w47qeASC0ZjDjfRBkQ4oOqEiNMZ8O8 DZNH3Fl23ZBwBFOICCS2udohO3kzRBbBCbd5TXcti6cx0Gz6QBrefFg6Zo0lhqthPSK2 u2mBDpENjE+YnjA8LU7Z9bdmY+AK5ZnEGl8REyQqgQBRLmq0vb5UlN7Fajv+JeLqNN3N sKlLI1EiZ57zLOdV7MaSGdVxN5/M7rjyz0d15s6JcMdl5PJ152P7qgcisHp3ssRa0+gO YBQw== X-Gm-Message-State: APzg51DFlR7vMMxNZY9NWdEeBCwF3fVFBRZJmJKN7S7MSl+Rnh/eCbIJ XBTTdkcjBtaxfLTr+aSsm8qg3Hlrrbw= X-Received: by 2002:a2e:1290:: with SMTP id 16-v6mr8919517ljs.94.1535668547571; Thu, 30 Aug 2018 15:35:47 -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.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Aug 2018 15:35:46 -0700 (PDT) From: Igor Stoppa X-Google-Original-From: Igor Stoppa To: linux-kernel@vger.kernel.org Cc: igor.stoppa@gmail.com, Igor Stoppa , Aaro Koskinen , Greg Kroah-Hartman Subject: [PATCH 17/23] usb: octeon-hcd: remove unnecessary unlikely() Date: Fri, 31 Aug 2018 01:34:23 +0300 Message-Id: <20180830223429.30051-18-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: Aaro Koskinen Cc: Greg Kroah-Hartman --- drivers/staging/octeon-usb/octeon-hcd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/octeon-usb/octeon-hcd.c b/drivers/staging/octeon-usb/octeon-hcd.c index cff5e790b196..1a6431879201 100644 --- a/drivers/staging/octeon-usb/octeon-hcd.c +++ b/drivers/staging/octeon-usb/octeon-hcd.c @@ -2768,7 +2768,7 @@ static int cvmx_usb_poll_channel(struct octeon_hcd *usb, int channel) (pipe->transfer_dir == CVMX_USB_DIRECTION_OUT)) pipe->flags |= CVMX_USB_PIPE_FLAGS_NEED_PING; - if (unlikely(WARN_ON_ONCE(bytes_this_transfer < 0))) { + if (WARN_ON_ONCE(bytes_this_transfer < 0)) { /* * In some rare cases the DMA engine seems to get stuck and * keeps substracting same byte count over and over again. In -- 2.17.1