From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EF17BC43381 for ; Mon, 25 Feb 2019 21:59:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AD6A62146F for ; Mon, 25 Feb 2019 21:59:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1551131957; bh=6KpRcHBXaktwjmj2kVpbmQc0itp0YdrEcyn9JzGftI8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=HeD+bwUuRGiu6AqP4zKF5y65jCOoM22m2CJNGiMR6vNK6qOfN2gEsEGa72dWS5srs QDqt5D+UOhYaktlvb/y5Y8UTA+/pPzDfqThH7nIaQ29K1tnj3b8pfFYBpsE0I52RrE 8iU9AoDgfRVgQjBqDMZ6G/mECzzk+TlhaG2RJiZ0= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729932AbfBYV7Q (ORCPT ); Mon, 25 Feb 2019 16:59:16 -0500 Received: from mail.kernel.org ([198.145.29.99]:52442 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729202AbfBYVTZ (ORCPT ); Mon, 25 Feb 2019 16:19:25 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2251E2183F; Mon, 25 Feb 2019 21:19:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1551129564; bh=6KpRcHBXaktwjmj2kVpbmQc0itp0YdrEcyn9JzGftI8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FtZu7jGikQtjNe52b4qmSo80BvBYaigg2wsE+h9NCwKyrmjJC+GDi/l1vO62XZE0P +BKOZiYnh/P5kKxrKEUvjCjdH+38dUtI9mQB8vddCpoSW15ez7P4PjkjAtrtKNnZKI L46C/M3Rk1aznyOGnSltS7VoeyhhNlRQIneSahP0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Colin Ian King , Kishon Vijay Abraham I , Nathan Chancellor Subject: [PATCH 4.14 70/71] phy: tegra: remove redundant self assignment of map Date: Mon, 25 Feb 2019 22:12:12 +0100 Message-Id: <20190225195039.945264287@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190225195034.555044862@linuxfoundation.org> References: <20190225195034.555044862@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Colin Ian King commit a0dd6773038f3fd2bd1b4f7ec193887cffc49046 upstream. The assignment of map to itself is redundant and can be removed. Detected with Coccinelle. Signed-off-by: Colin Ian King Signed-off-by: Kishon Vijay Abraham I Cc: Nathan Chancellor Signed-off-by: Greg Kroah-Hartman --- drivers/phy/tegra/xusb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/phy/tegra/xusb.c +++ b/drivers/phy/tegra/xusb.c @@ -418,7 +418,7 @@ tegra_xusb_port_find_lane(struct tegra_x { struct tegra_xusb_lane *lane, *match = ERR_PTR(-ENODEV); - for (map = map; map->type; map++) { + for (; map->type; map++) { if (port->index != map->port) continue;