Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2569223ybl; Thu, 29 Aug 2019 09:54:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqzZ0+HPQ10PkfQudcPMmG7TfoB56XbsJXitpCS4aobltWTtVznWVblfuml8nKRf3FzVJgmc X-Received: by 2002:a63:5c7:: with SMTP id 190mr8985421pgf.67.1567097653505; Thu, 29 Aug 2019 09:54:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567097653; cv=none; d=google.com; s=arc-20160816; b=ErZJx9kMBEft0NercyIk8viwQkYO6yeZEhXp3ZBwn1wqOzqaIzDB8p+Eh3wY8dPoQY GTUKfn+u6QMPntb7LnxrWI24vzT5JrUbed3Ixh1kfcaLBTduV+YRtMmVNhJuH9oTAbOQ kWjGAQp/O1cJQpw3nHCBMujIssTvhrwooFfDv1ksdaa5u78CjGxD6Y1et8YoIJ5SFngZ bbcyh3h4LRm0hJvmGCSJvjVWb22xudZvxhoOzn3ykItX1U12342zlcDtFjMWtgG100K1 S5hmdsqbhbLCTYX1AXr3US0hSwBFHIgnsAO3jpGZX7CdfCdJTWlgfSq9X1p2vPUikqw2 lNYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=SKsJY57Vd8P380yZjRTYqZ29aNOB3lqsM0XLQ0UvZ90=; b=qTKJz/JbxDIvSr17L4Z2qNP+YMgrwIxObr7WkMttZ0LbMOpIcRrIqQQ/EwVxGl3Xy8 fQOg0jFqlnMgzZMC/EopN+dt0dc7NHY5JjGXJnldGz2MbWZLH5SnvyycPcHr2yId9nnq zGwyEeFr7uHd9y/aNrNo9LSjmjVsMUpwxUAs1Mlg7YcgaGHhzQQlJhzejXEtyzAuKi8+ Bfycz29zNOpn3LGJ/hFwL/tmQxi3rCbQ30toI7mobpoTUfN1sh8X5w2ty5k0e5nEou1L 4qzpUDmKG6MpqsM2cgGycEXRO5ePaJscmZ6Yx5Qp7Ycgk0a1fe7JzNF1LrIpZgr7YpUL 0Xmg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n128si2419137pgn.82.2019.08.29.09.53.58; Thu, 29 Aug 2019 09:54:13 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728134AbfH2Qve (ORCPT + 99 others); Thu, 29 Aug 2019 12:51:34 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:37453 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728079AbfH2Qvb (ORCPT ); Thu, 29 Aug 2019 12:51:31 -0400 Received: by mail-wm1-f68.google.com with SMTP id d16so4551708wme.2 for ; Thu, 29 Aug 2019 09:51:30 -0700 (PDT) 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:mime-version:content-transfer-encoding; bh=SKsJY57Vd8P380yZjRTYqZ29aNOB3lqsM0XLQ0UvZ90=; b=dcPwbEzWsuDtrypRbAhxp57pQuc10tpytIBhz00FrsBqbK9fZHXIgTpVnVKGLNI4IC CtyObWAoa5XzYcTBoegEMxY8kVC67ZxJmsuhd08Y8FuqTJxvTCEhEzWJ0pZV4p1QLT4A 8WHRPFrfbX3ne3AinoVNimqpuw3oYpF+yAtqvZRf1ITvK+BuIyost+lz3LYliBuly1sR bWHH/MeUL3m/84CD5JHfprVt6RYo1tBuNdqUaJuSUl5IF9xvBqI4QsPn1Ee81GdpcWiI BXvbY5xknp3PdOCfOgxYKrlS92wBM5HCiorWZ+WFSkuqx/9PAesBQTIl4aiW0yRXgtGf gtuw== X-Gm-Message-State: APjAAAWZVH4IH1CQdf6h2z6bLMk1ixGWlVtAoFeptKPR+iPwXECBHicI 03QxfTvcNPZ4LEprXqpiWDbSPWWRNok= X-Received: by 2002:a1c:be15:: with SMTP id o21mr12560738wmf.140.1567097489839; Thu, 29 Aug 2019 09:51:29 -0700 (PDT) Received: from green.intra.ispras.ru (bran.ispras.ru. [83.149.199.196]) by smtp.googlemail.com with ESMTPSA id o14sm8340770wrg.64.2019.08.29.09.51.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Aug 2019 09:51:29 -0700 (PDT) From: Denis Efremov To: linux-kernel@vger.kernel.org Cc: Denis Efremov , Inaky Perez-Gonzalez , Joe Perches , Andrew Morton , linux-wimax@intel.com Subject: [PATCH v3 06/11] wimax/i2400m: remove unlikely() from WARN*() condition Date: Thu, 29 Aug 2019 19:50:20 +0300 Message-Id: <20190829165025.15750-6-efremov@linux.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190829165025.15750-1-efremov@linux.com> References: <20190829165025.15750-1-efremov@linux.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org "unlikely(WARN_ON(x))" is excessive. WARN_ON() already uses unlikely() internally. Signed-off-by: Denis Efremov Cc: Inaky Perez-Gonzalez Cc: Joe Perches Cc: Andrew Morton Cc: linux-wimax@intel.com --- drivers/net/wimax/i2400m/tx.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/wimax/i2400m/tx.c b/drivers/net/wimax/i2400m/tx.c index ebd64e083726..1255302e251e 100644 --- a/drivers/net/wimax/i2400m/tx.c +++ b/drivers/net/wimax/i2400m/tx.c @@ -654,8 +654,7 @@ void i2400m_tx_close(struct i2400m *i2400m) padding = aligned_size - tx_msg_moved->size; if (padding > 0) { pad_buf = i2400m_tx_fifo_push(i2400m, padding, 0, 0); - if (unlikely(WARN_ON(pad_buf == NULL - || pad_buf == TAIL_FULL))) { + if (WARN_ON(pad_buf == NULL || pad_buf == TAIL_FULL)) { /* This should not happen -- append should verify * there is always space left at least to append * tx_block_size */ -- 2.21.0