From patchwork Mon Nov 9 16:56:33 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Elder X-Patchwork-Id: 320931 Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp1890343ilc; Mon, 9 Nov 2020 08:57:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJwyV2w/QHTenpoXV8Pw2ag14Bgj3z0qdfPdekHZzxKNRGtF3CT4t4WjXHszhP9XzkV24M0k X-Received: by 2002:a17:906:7c9:: with SMTP id m9mr15629352ejc.178.1604941023752; Mon, 09 Nov 2020 08:57:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604941023; cv=none; d=google.com; s=arc-20160816; b=ONTKe/oeV26V6XBZC5Y5VnTixOigpblCg64bZ0WXLsnha69OYmtwXJC5Ri0voiB3CO k9S6mLuwPvxW/+b/VmoCsAKPvV+Fj152JYXE+CGIEaWylBSoPxbioJNH+qMBUon/N7eu mqi3Be8yRu/DmH+QtcygR+iFFUgXT4tmE01azRjlPrkW0uvXlToFOhLcj0bnI7ZxpC6Z kIEahWnbFfRCIPBxhS9E6INExXBcDc8Mv1XR0kmwk34UyV9IEorjQQ4Dn6C4K9gqCsAl vIdpzH2J1XMlbhlTL2z0ykoaGNnepZ0CSY2oY9cIM07b9NlXiKiWEfTb4PEZT0B2NW+B suMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=08abeJNv4qBy1pxGXBXjopswc7xkT9rkpPsBR41Sgkw=; b=MJUmjt9XSwbJa4Nk3bF93UeTaAXuHHEd7CEsrPMcv7T0r3eqZcNCYNhcNeWvl3V1z6 u8piG2pFPUgCkAOtbALWTPwJISakI05QqO87JmjrGtUrNLyoMmbljk19BRbL6XtwRnzm 0f/YinvGsau3SxxyVQzfztRGS9+xCTAWEVOSYfrS9QjxWP6GpmR9DF0D4KdOVy+tgs1c o3tieDjTWd5ipCikCZ/S3frWe2vSvDkcRhRFmHkEOWroVOVLwtFa1ShunUMwXRj/DIoO XiVtKsubC7h/8ZsyaBHHgv8j+qUBjNjA6fUS6+Cc1ILqEsbe/aNYXndxDp9NnFBhbvok MkqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="KL/auJzZ"; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u26si4548475ejc.249.2020.11.09.08.57.03; Mon, 09 Nov 2020 08:57:03 -0800 (PST) Received-SPF: pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="KL/auJzZ"; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730795AbgKIQ4n (ORCPT + 8 others); Mon, 9 Nov 2020 11:56:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730765AbgKIQ4m (ORCPT ); Mon, 9 Nov 2020 11:56:42 -0500 Received: from mail-il1-x142.google.com (mail-il1-x142.google.com [IPv6:2607:f8b0:4864:20::142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2FE2AC0613D4 for ; Mon, 9 Nov 2020 08:56:42 -0800 (PST) Received: by mail-il1-x142.google.com with SMTP id l12so6195145ilo.1 for ; Mon, 09 Nov 2020 08:56:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=08abeJNv4qBy1pxGXBXjopswc7xkT9rkpPsBR41Sgkw=; b=KL/auJzZZwrzzz6b44y5xBOCRS7ddo7BcGzGvZoWBcYBjI0XKteyMvgudYWwFSRUUC oMRcZNeftE3rvnBFKQzreOTI6w78f/rpgka+cSUlJQqwsXYa3PYbFS+dTIRnCE2yaJUQ jHnxcoPSC90eDU8kj+QqYrwTjDD8pF+9ZVrtnNQRpxxWFX5GTJ1WM+f4QpGrnb9ouyuT RH8lEupKZpIncv80GVNnTUvx9b0foUYKdxH+J/k5X0Gjbkxzv04TKtfUAkR7mNJ+LSeg 2nPnbNcc/C6KZDnsjAkGSCmKVQMmbgal3Bx6m7YQ7OLRuswEgC8r9/1QnlEJwFxXQiJ0 UmMA== 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=08abeJNv4qBy1pxGXBXjopswc7xkT9rkpPsBR41Sgkw=; b=JoXZ7/bsHzoHhU9FaVabSAEnWY1xu858zugYPsijWvM6G+CQwkxAykMulWgmGX/foZ tTdljzgws4HuAq5i+b2JR1MaPJb345tcBISdq/kXIfmbOSGq6LkuWbU8O4MnU/lynXZ0 +iheepOGBykJRBog9RjFfYab8/RfQV6F/9sdvfPF9Bf3daHII8CautcZiGuI+zEDIXNg Pq9FHKF4HvTvAbanLBtqLMbeFVLmftQp5CVDzZQt9MmzF9UqzCfwArWmcEvjO4qS730F PAItLnb/agOuJsbBx7Hnt/1IMRfFUK86iBmB0qZbf/+kcXNhVJu8010a65lSqDZ5k5ct WR1w== X-Gm-Message-State: AOAM532P+ekOEIfkCAc1qI43UwQsr9A297UPMBHQIHU10Op27X0UxWN1 6PRfwD7esf9m2HJMOfy1GirCIg== X-Received: by 2002:a92:1548:: with SMTP id v69mr9529474ilk.68.1604941001239; Mon, 09 Nov 2020 08:56:41 -0800 (PST) Received: from beast.localdomain (c-73-185-129-58.hsd1.mn.comcast.net. [73.185.129.58]) by smtp.gmail.com with ESMTPSA id j85sm7576556ilg.82.2020.11.09.08.56.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Nov 2020 08:56:40 -0800 (PST) From: Alex Elder To: davem@davemloft.net, kuba@kernel.org Cc: evgreen@chromium.org, subashab@codeaurora.org, cpratapa@codeaurora.org, bjorn.andersson@linaro.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next 2/4] net: ipa: get rid of a useless line of code Date: Mon, 9 Nov 2020 10:56:33 -0600 Message-Id: <20201109165635.5449-3-elder@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20201109165635.5449-1-elder@linaro.org> References: <20201109165635.5449-1-elder@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Delete a spurious line of code in ipa_hardware_config(). It reads a register value then ignores the value, so is completely unnecessary. Add a missing word in a comment. Signed-off-by: Alex Elder --- drivers/net/ipa/ipa_main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.20.1 diff --git a/drivers/net/ipa/ipa_main.c b/drivers/net/ipa/ipa_main.c index d1e582707800a..bfe95a46acaf1 100644 --- a/drivers/net/ipa/ipa_main.c +++ b/drivers/net/ipa/ipa_main.c @@ -335,7 +335,6 @@ static void ipa_hardware_config(struct ipa *ipa) ipa_hardware_config_qsb(ipa); /* Configure aggregation granularity */ - val = ioread32(ipa->reg_virt + IPA_REG_COUNTER_CFG_OFFSET); granularity = ipa_aggr_granularity_val(IPA_AGGR_GRANULARITY); val = u32_encode_bits(granularity, AGGR_GRANULARITY); iowrite32(val, ipa->reg_virt + IPA_REG_COUNTER_CFG_OFFSET); @@ -787,7 +786,7 @@ static int ipa_probe(struct platform_device *pdev) if (ret) goto err_mem_exit; - /* Result is a non-zero mask endpoints that support filtering */ + /* Result is a non-zero mask of endpoints that support filtering */ ipa->filter_map = ipa_endpoint_init(ipa, data->endpoint_count, data->endpoint_data); if (!ipa->filter_map) {