Received: from milmhbs1.lsil.com (147.145.21.209) by coscas01.lsi.com
 (172.21.36.60) with Microsoft SMTP Server id 8.1.393.1; Wed, 14 Oct 2009
 13:03:23 -0600
Received: from mail1.lsil.com (mail1.lsil.com [147.145.40.21])	by
 milmhbs1.lsil.com (8.12.11/8.12.11) with ESMTP id n9EJ3NIK021051	for
 <andy.sharp@lsi.com>; Wed, 14 Oct 2009 12:03:23 -0700
Received: from psmtp.com (na3sys009amx251.postini.com [74.125.149.135])	by
 mail1.lsil.com (8.12.11/8.12.11) with SMTP id n9EJ3Lm8027630	for
 <andy.sharp@lsi.com>; Wed, 14 Oct 2009 12:03:21 -0700 (PDT)
Received: from source ([78.24.191.182]) by na3sys009amx251.postini.com
 ([74.125.148.14]) with SMTP;	Wed, 14 Oct 2009 15:03:22 EDT
Received: from localhost.localdomain ([127.0.0.1]:40279 "EHLO
	eddie.linux-mips.org" rhost-flags-OK-OK-OK-FAIL) by ftp.linux-mips.org	with
 ESMTP id S1493662AbZJNTDT (ORCPT <rfc822;andy.sharp@lsi.com>);	Wed, 14 Oct
 2009 21:03:19 +0200
Received: with ECARTIS (v1.0.0; list linux-mips); Wed, 14 Oct 2009 21:03:01
 +0200 (CEST)
Received: from gw01.mail.saunalahti.fi ([195.197.172.115]:38970 "EHLO
	gw01.mail.saunalahti.fi" rhost-flags-OK-OK-OK-OK)	by ftp.linux-mips.org with
 ESMTP id S1493040AbZJNTC3 (ORCPT	<rfc822;linux-mips@linux-mips.org>); Wed, 14
 Oct 2009 21:02:29 +0200
Received: from localhost.localdomain (a88-114-232-190.elisa-laajakaista.fi
 [88.114.232.190])	by gw01.mail.saunalahti.fi (Postfix) with ESMTP id
 8C53A151705;	Wed, 14 Oct 2009 22:02:25 +0300 (EEST)
From: Dmitri Vorobiev <dmitri.vorobiev@movial.com>
To: "ralf@linux-mips.org" <ralf@linux-mips.org>, "linux-mips@linux-mips.org"
	<linux-mips@linux-mips.org>
CC: Dmitri Vorobiev <dmitri.vorobiev@movial.com>
Sender: "linux-mips-bounce@linux-mips.org" <linux-mips-bounce@linux-mips.org>
Date: Wed, 14 Oct 2009 13:02:17 -0600
Subject: [PATCH 1/3] [MIPS] mipssim: remove unused code
Thread-Topic: [PATCH 1/3] [MIPS] mipssim: remove unused code
Thread-Index: AcpNAQEOzQvmKiScRrehbAatQ5iaxQ==
Message-ID: <1255546939-3302-2-git-send-email-dmitri.vorobiev@movial.com>
References: <1255546939-3302-1-git-send-email-dmitri.vorobiev@movial.com>
In-Reply-To: <1255546939-3302-1-git-send-email-dmitri.vorobiev@movial.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Exchange-Organization-AuthAs: Anonymous
X-MS-Exchange-Organization-AuthSource: coscas01.lsi.com
X-MS-Has-Attach:
X-Auto-Response-Suppress: All
X-MS-TNEF-Correlator:
x-scanned-by: MIMEDefang 2.39
errors-to: linux-mips-bounce@linux-mips.org
x-pstn-levels: (S:99.90000/99.90000 CV:99.9000 FC:95.5390 LC:95.5390
 R:95.9108 P:95.9108 M:97.0282 C:98.6951 )
x-pstn-settings: 3 (1.0000:1.0000) s cv gt3 gt2 gt1 r p m c 
x-pstn-addresses: from <dmitri.vorobiev@movial.com> [db-null] 
x-pstn-neptune: 0/0/0.00/0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0

The function prom_init_cmdline() doesn't do anything, and nobody calls
the prom_getcmdline() function. Since these two are the only functions
in the file arch/mips/mipssim/sim_cmdline.c, the whole file can be
removed now along with the call to the no-op prom_init_cmdline()
routine.

Signed-off-by: Dmitri Vorobiev <dmitri.vorobiev@movial.com>
---
 arch/mips/mipssim/sim_cmdline.c |   32 --------------------------------
 arch/mips/mipssim/sim_setup.c   |    1 -
 2 files changed, 0 insertions(+), 33 deletions(-)
 delete mode 100644 arch/mips/mipssim/sim_cmdline.c

diff --git a/arch/mips/mipssim/sim_cmdline.c b/arch/mips/mipssim/sim_cmdlin=
e.c
deleted file mode 100644
index 74240e1..0000000
--- a/arch/mips/mipssim/sim_cmdline.c
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * Copyright (C) 2005 MIPS Technologies, Inc.  All rights reserved.
- *
- *  This program is free software; you can distribute it and/or modify it
- *  under the terms of the GNU General Public License (Version 2) as
- *  published by the Free Software Foundation.
- *
- *  This program is distributed in the hope it will be useful, but WITHOUT
- *  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- *  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
- *  for more details.
- *
- *  You should have received a copy of the GNU General Public License alon=
g
- *  with this program; if not, write to the Free Software Foundation, Inc.=
,
- *  59 Temple Place - Suite 330, Boston MA 02111-1307, USA.
- *
- */
-#include <linux/init.h>
-#include <linux/string.h>
-#include <asm/bootinfo.h>
-
-extern char arcs_cmdline[];
-
-char * __init prom_getcmdline(void)
-{
-	return arcs_cmdline;
-}
-
-void  __init prom_init_cmdline(void)
-{
-	/* XXX: Get boot line from environment? */
-}
diff --git a/arch/mips/mipssim/sim_setup.c b/arch/mips/mipssim/sim_setup.c
index 2877675..0824f6a 100644
--- a/arch/mips/mipssim/sim_setup.c
+++ b/arch/mips/mipssim/sim_setup.c
@@ -61,7 +61,6 @@ void __init prom_init(void)
 	set_io_port_base(0xbfd00000);
=20
 	pr_info("\nLINUX started...\n");
-	prom_init_cmdline();
 	prom_meminit();
=20
 #ifdef CONFIG_MIPS_MT_SMP
--=20
1.6.0.4


