Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp55737imm; Thu, 30 Aug 2018 15:37:19 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaRy6VN86PCf1HOh6UOvumVAthpSpUDOCqohKeuJnTD0Uw3AoLPOFKTraxkvToRXdicBl5Y X-Received: by 2002:a62:843:: with SMTP id c64-v6mr12675695pfd.14.1535668638991; Thu, 30 Aug 2018 15:37:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535668638; cv=none; d=google.com; s=arc-20160816; b=BVykzlr7lQ2T+x6rFhOHNjqtR6ScgYaRbrkVpuypuazIu8aR/A/QkCqen1HgceYf58 rBwI93bLUVefo19sZLIdRCH5gG8TEyYfrv1GLzfzE7jVjxJN8qhKo94pcidBEM8r+S0q Cz1Eoa0Fw7piveXzOd8oR4+SwtbFqJwrUttYojRMMXBz74+K21EDzP1PnlpIWVMeu4xf erZm1jxtl57IcJA+hSy92woKxm2OBlySa8D5bA1CZAzZh1lQQui58PW0tCajR9qlXMZy fYBoyy1pbx91cMoKWAJfZt+Enh4iEVF2iLmoflWOHgzka05UVO6XTDE2H4pXeno9s5iG fsUA== 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=ELrCwb70Eswi1rgH9pKht4m90s8Ue7VvEGevoqh5MT4=; b=Vkrpjglra0muFGdjXi83Q3MUYal51rp2NrdQ9MgOlZ9TP+cHzoWem3LIYSFkc8p387 6nePTgwdodQuq0ZaFEO2jvOAVNeX+OO22kjMSCabwTLu1aeL+nVkF+sNEhttyLs7EwN1 u1/l1F3wLriXVakLZKEkD+XT6rrzN8oZRPvXULTn0UXoRJ9GyZ+KlG8v6NXu8taLj08J jJQfjKdcFcCpzXWSsVs/Q6ngR6vbLooccczo5X1lszpYojzI1eBHP0C8Gn9gl3o5w9Mp kBJJ1uIlJ221AbVdE6cRnABnOTyR8zANh2qj7PKmJlKittrMw1/G40W4SVYLM2sHvabj 0iYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tzBNCgBX; 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.37.04; Thu, 30 Aug 2018 15:37:18 -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=tzBNCgBX; 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 S1727671AbeHaCkJ (ORCPT + 99 others); Thu, 30 Aug 2018 22:40:09 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:46426 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727212AbeHaCkI (ORCPT ); Thu, 30 Aug 2018 22:40:08 -0400 Received: by mail-lj1-f194.google.com with SMTP id 203-v6so8529881ljj.13 for ; Thu, 30 Aug 2018 15:35:43 -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=ELrCwb70Eswi1rgH9pKht4m90s8Ue7VvEGevoqh5MT4=; b=tzBNCgBX1luThMBNhKWbCw0/jpKnuxb3OnZmWULtBDFdsuo1YvkDTrgLaEr5iZvGyk ftO/nx9CwOS72fkR6HY9YSV673tKNgaZ2WG1qfWpd7zAR2UZiHZASVPZefLPOnBNHdUG bdeN8J1DKUAsSGiuTAYLhzwIeG/fp+RqA0b/JaPSMr/4e9WanMm7/6o1WQ4LSaH0nJRO YD+cvPa3v3BSaVF42xcZNgZnHYfkMpf/H6+5JlI1Y0UtbwoopQsbNs/7kVLCGJpYGHTj HBkM+v5CFbNqVKSqAr/rxBEVTcbJHrty27p2hlmj1eAPXPmWSLOe89ioOr94L9wy9kbm 8+ZA== 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=ELrCwb70Eswi1rgH9pKht4m90s8Ue7VvEGevoqh5MT4=; b=AOSt6VwNSTPaclPZeLcpHGZVCxrdRaEjDTzOqY89XVs00TK+dpD9YhJWP3IOwTgHDk AoOsC1ymsYXIcu88fHI3g5Ma2ZTwHfC7bLHe+/Cen80D3tkuQCtBRAxEH3B0ap1IbqNf vm6Xrp4haiMpAy5o3NUePbnpYjVewvuvzFJ7x9q2sMbhiX/IkkhnfxwloTI2HfZ2s0BL k32BuMgmyW+Zm5C6+dkVzB3i8BXtNepUjE3XFFwr7cMuyN2cybbVJ/fh69Ilo4/lYK3k XT6pkZG+jjEuOQY/HuidFtawEc06b44er+kNJcNNVBHu0A9BUI5rEoRkn36iPCGgwfTS Z9wA== X-Gm-Message-State: APzg51Cqv14entSspAF/VzN3OBIuBjyOr+x59Yv/nK1lW5I0Fs+iN9mA 3glCWvqfO+FttcD/+diX0/bfRAEMYAI= X-Received: by 2002:a2e:82c9:: with SMTP id n9-v6mr8356446ljh.111.1535668542704; Thu, 30 Aug 2018 15:35:42 -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.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Aug 2018 15:35:42 -0700 (PDT) From: Igor Stoppa X-Google-Original-From: Igor Stoppa To: linux-kernel@vger.kernel.org Cc: igor.stoppa@gmail.com, Igor Stoppa , Inaky Perez-Gonzalez Subject: [PATCH 14/23] wimax: i2400m: remove unnecessary unlikely() Date: Fri, 31 Aug 2018 01:34:20 +0300 Message-Id: <20180830223429.30051-15-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: Inaky Perez-Gonzalez --- 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 f20886ade1cc..59c70d928249 100644 --- a/drivers/net/wimax/i2400m/tx.c +++ b/drivers/net/wimax/i2400m/tx.c @@ -655,8 +655,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 || pad_buf == TAIL_FULL)) { /* This should not happen -- append should verify * there is always space left at least to append * tx_block_size */ -- 2.17.1