Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp55796imm; Thu, 30 Aug 2018 15:37:24 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbUfOeYcpABBMoCXcewliW2mCMWAiTcAEoaod+AU4OSIhyoSHUPWzyJ+cKh9aVJzb4fK53T X-Received: by 2002:a63:b44c:: with SMTP id n12-v6mr6898156pgu.337.1535668644438; Thu, 30 Aug 2018 15:37:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535668644; cv=none; d=google.com; s=arc-20160816; b=nRShh0JhoNKkieSHtLVdd+42HgbXFLRYqsjrKlyd8jLofrJrYd1NoCGn0L5TfHqxyS 0uSNZtnGfmo6dh65R4fmbgYEjmFtb3JN8HZ5vh/1QuwucgGVi9tfuHUmMhQ6bQN6e050 AiSr5o3xglVYUNZ8k2Fbo3NpRQH0BxjlpgzP5FYMiQCkva31dVJOkPXZ9TDVUYiS7He8 U9mF1VL7NUEfsaipE9WQkALb5CDVkaN0h7GsBfjCgF6Phmnc5NHbXcD/B5UFZ7APqTAA E7rhTT+DtpdOqAH8cNXabCgGxE6dSzp856nB3PUr0RqidYIAmDLYXuSx2v4THmDDJokw FY6g== 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=LkeLH5ys4Ym/Z4rYm7fEGLM3aBXNN1OdVpZ9tCI/YNw=; b=YpNxBHQLMVSp5vX8eszc6y/DbfQO4kzFvl/DqCwrlJRi5SRu6vasYx8vwcTKI13uRS CRT0BvOCEoW3KL99tceOsZYjFlIKdBqNtTvLVuik7QjoKjXGArXlo0pUl39N3QwyRog+ n9Rb41tF9TiiUrEFSUcPfHKYmDTXmVFRrzxNHAJNgtFvfyxSFo9QG78kFRS6suxe3t37 jrfiMw3FeaPCLYCKRt4RW+rn3eWRpKlYDlbl2aDpGHwIp1lsWyjvB/p139ikp/iBsN85 /1QpQZjbB20PxiEXAGlbOJaS26QoLKE/Rc9Nhc7WN6cqV+fD0W+kg4gMdRkeF7DreYys pTvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bFW929sr; 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 k91-v6si7753513pld.187.2018.08.30.15.37.10; Thu, 30 Aug 2018 15:37:24 -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=bFW929sr; 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 S1727765AbeHaCkQ (ORCPT + 99 others); Thu, 30 Aug 2018 22:40:16 -0400 Received: from mail-lf1-f68.google.com ([209.85.167.68]:33579 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727258AbeHaCkQ (ORCPT ); Thu, 30 Aug 2018 22:40:16 -0400 Received: by mail-lf1-f68.google.com with SMTP id m26-v6so8481692lfb.0 for ; Thu, 30 Aug 2018 15:35:51 -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=LkeLH5ys4Ym/Z4rYm7fEGLM3aBXNN1OdVpZ9tCI/YNw=; b=bFW929srddgkayxiNPmpKVwxQ3UQbXn6hTztET8zSE0Wh9fbI2dh+F6JhVqkNmZ2i8 bYuw+refc+8Fv2/YwUl/uB5WQUfZrXcrxXggL7o8tU+hJU6mZBlNop7mdtayatFJWzK3 i+vOLZByAig4DjnfRf0Y2A4AFQxM8RB4+uNsM+FAbBzPQOWlhkDmSb30Spgh6K6NBh0S 5vAukvmtwypLixw52BpM3jKi+ZJ0lynb+M+UtNuVYKp+3HlONZaSm/zlaElGHck6JkK9 e7PjvWaVpQq8D+fln8EKhx0WherkbALj31345b6W4onqsGilJ2uL/DqV/m8b3zJxZea7 ov4A== 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=LkeLH5ys4Ym/Z4rYm7fEGLM3aBXNN1OdVpZ9tCI/YNw=; b=qf+3U58qAAfERtBYqcgLJEMIVVwPEHkkGMkRr2K4ejVmwtYanmNlLaNoftae/UYKgW PPNeJTmiztqwA+rgqjxaxGs1yzn8GtzCXmgbbjTs5fJdXAEy/XoZ3pgY8B8DP9nbUYz6 rBtY0+Wv1/UuKxON2gvNBbCibEpEKGFd4zys+F6kqa1TYW6wNdS0kdSQJWtWSDVO4D1r zQj+NTuZlqZLV/r6Eg8MLUSYqogvmWtEgKZcqhgc3Aq+VPSpqBX3RdofwSw1jO1HYSao 43wDR7iD3vXvHnV44+8sK1LlMwmZFtmmw0ftaL3DmvHb4wH6dOzHq6rcbejBtIqBbHY/ QFFA== X-Gm-Message-State: APzg51ANHG7dcs9cwa+pieaY29X5DVWPmNcpg6wm7uZQ+4qimf/AukBt F5vMCGJqOsbyYDVBZZw848+knmPrrnI= X-Received: by 2002:a19:4a09:: with SMTP id x9-v6mr8973403lfa.80.1535668550695; Thu, 30 Aug 2018 15:35:50 -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.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Aug 2018 15:35:50 -0700 (PDT) From: Igor Stoppa X-Google-Original-From: Igor Stoppa To: linux-kernel@vger.kernel.org Cc: igor.stoppa@gmail.com, Igor Stoppa , Andrew Jeffery , Linus Walleij Subject: [PATCH 19/23] pinctrl: remove unnecessary unlikely() Date: Fri, 31 Aug 2018 01:34:25 +0300 Message-Id: <20180830223429.30051-20-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: Andrew Jeffery Cc: Linus Walleij --- drivers/pinctrl/aspeed/pinctrl-aspeed.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/aspeed/pinctrl-aspeed.c b/drivers/pinctrl/aspeed/pinctrl-aspeed.c index aefe3c33dffd..eb87ab774269 100644 --- a/drivers/pinctrl/aspeed/pinctrl-aspeed.c +++ b/drivers/pinctrl/aspeed/pinctrl-aspeed.c @@ -715,7 +715,7 @@ int aspeed_pin_config_set(struct pinctrl_dev *pctldev, unsigned int offset, pmap = find_pinconf_map(param, MAP_TYPE_ARG, arg); - if (unlikely(WARN_ON(!pmap))) + if (WARN_ON(!pmap)) return -EINVAL; val = pmap->val << pconf->bit; -- 2.17.1