Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp2920871pxb; Sun, 23 Jan 2022 20:33:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJydKnLEI6IV+M779/7/OYQ4ajtcdHkki/xpVdYC3RbxoCo/lcmbJpX6ifhy1z2aqgvtdAtA X-Received: by 2002:a63:9b0a:: with SMTP id r10mr10574833pgd.405.1642998806005; Sun, 23 Jan 2022 20:33:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642998806; cv=none; d=google.com; s=arc-20160816; b=KWVr93d6zCCGr/n/YYoGb9KUQ3z70ALtgUDgwaq6YGhggU4Ja1GMEbtm38+Sa+H68S goCKGotDbQo2FzSEjk4OCNvsnBHopoXhGeDL6AG5VEfCcer6qxXEvqudPKInKS88NQ29 qFQbjiOA1FxREdSSVuwy658eFV4wlndxZFsvo2aQnwAqrNSLLMkSulBc9rZdPB32pcVB /YwDPkA/Djw4TqABtGVl7hEMMvoef/eAy5nz6sGyuuWp2RvYT2KLHtKSvloUNh+5y3Jg NQmbcN2EjCB4Bwige84Nr60lzfyFn7oZh0LAMp6ojdLj9EJT3embAr1BeGuI2jPJUjme 75Rg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=RD7Kb5HGRmxu1H1Kfab4Hp6cNBfxp5ZMBIq2r6UZWr8=; b=yWsDo602ZUi/HFVM4oOYM9QSL5z/yUVB9p6ftJ6N2dVyy9SDq28npyLnwAGwOxQeXq tCQ1ITnY+45oy/VUfpWCBVUcFGl5oO8gI9Pc6Z221hc1NYGHkK6p2mxCCbNLAkL1lBpx 1ejBhjZzVbqi04p7SOpefykAvV2BVfmkYCbVLloRzq37ml438oQD0lMRIYK59bhs2/ON BgG4SyfIe41W0SSs9EKRhKPCxWwX8EM+dKZEeRzAa0J5+Svx2GU+U1KDMp/JeLdi7mS9 ZiFz6iewui0bEruWFX6DQY9bDehvXVnRG2VlG5xZx3UhtC+Luc5t7VydVtk3FI+hgEUm WySA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.co.jp header.s=amazon201209 header.b=XUqX1tfs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.co.jp Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o4si12726348pgb.557.2022.01.23.20.32.45; Sun, 23 Jan 2022 20:33:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-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=@amazon.co.jp header.s=amazon201209 header.b=XUqX1tfs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.co.jp Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232032AbiAWCBM (ORCPT + 99 others); Sat, 22 Jan 2022 21:01:12 -0500 Received: from smtp-fw-9102.amazon.com ([207.171.184.29]:3013 "EHLO smtp-fw-9102.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231614AbiAWCBL (ORCPT ); Sat, 22 Jan 2022 21:01:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.co.jp; i=@amazon.co.jp; q=dns/txt; s=amazon201209; t=1642903272; x=1674439272; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=RD7Kb5HGRmxu1H1Kfab4Hp6cNBfxp5ZMBIq2r6UZWr8=; b=XUqX1tfsxB4p663uSZ0B3Loo8ZRgdE+otapWbyZUSXhudsA9cRPXFqI6 Hj9KZedZQSboOMtFUJ0TYxkMwmmMX3MOkXMgDoHLXBdKDKByThTIJcd98 2SUj9V/GxBNFx7iegFNYHJPXFQ8HBpqD96klfNLwINQ60LX2qRiX2yDnF Y=; X-IronPort-AV: E=Sophos;i="5.88,309,1635206400"; d="scan'208";a="189275472" Received: from pdx4-co-svc-p1-lb2-vlan3.amazon.com (HELO email-inbound-relay-pdx-2c-72dc3927.us-west-2.amazon.com) ([10.25.36.214]) by smtp-border-fw-9102.sea19.amazon.com with ESMTP; 23 Jan 2022 02:01:11 +0000 Received: from EX13MTAUWB001.ant.amazon.com (pdx1-ws-svc-p6-lb9-vlan2.pdx.amazon.com [10.236.137.194]) by email-inbound-relay-pdx-2c-72dc3927.us-west-2.amazon.com (Postfix) with ESMTPS id 196E0419A5; Sun, 23 Jan 2022 02:01:11 +0000 (UTC) Received: from EX13D04ANC001.ant.amazon.com (10.43.157.89) by EX13MTAUWB001.ant.amazon.com (10.43.161.207) with Microsoft SMTP Server (TLS) id 15.0.1497.28; Sun, 23 Jan 2022 02:01:09 +0000 Received: from 88665a182662.ant.amazon.com (10.43.160.114) by EX13D04ANC001.ant.amazon.com (10.43.157.89) with Microsoft SMTP Server (TLS) id 15.0.1497.28; Sun, 23 Jan 2022 02:01:05 +0000 From: Kuniyuki Iwashima To: Jonas Bonn , Stefan Kristiansson , Stafford Horne CC: Benjamin Herrenschmidt , Kuniyuki Iwashima , Kuniyuki Iwashima , , Subject: [PATCH] openrisc/boot: Remove unnecessary initialisation in memcpy(). Date: Sun, 23 Jan 2022 11:01:00 +0900 Message-ID: <20220123020100.45201-1-kuniyu@amazon.co.jp> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.43.160.114] X-ClientProxiedBy: EX13D45UWA004.ant.amazon.com (10.43.160.151) To EX13D04ANC001.ant.amazon.com (10.43.157.89) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 'd' and 's' are initialised later with 'dest_w' and 'src_w', so we need not initialise them before that. Signed-off-by: Kuniyuki Iwashima --- arch/openrisc/lib/memcpy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/openrisc/lib/memcpy.c b/arch/openrisc/lib/memcpy.c index fe2177628..e2af9b510 100644 --- a/arch/openrisc/lib/memcpy.c +++ b/arch/openrisc/lib/memcpy.c @@ -101,7 +101,7 @@ void *memcpy(void *dest, __const void *src, __kernel_size_t n) */ void *memcpy(void *dest, __const void *src, __kernel_size_t n) { - unsigned char *d = (unsigned char *)dest, *s = (unsigned char *)src; + unsigned char *d, *s; uint32_t *dest_w = (uint32_t *)dest, *src_w = (uint32_t *)src; /* If both source and dest are word aligned copy words */ -- 2.30.2