From patchwork Thu Jan 14 16:55:55 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: roel kluin X-Patchwork-Id: 42905 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id C5E5DB7CD1 for ; Fri, 15 Jan 2010 03:51:41 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756909Ab0ANQvj (ORCPT ); Thu, 14 Jan 2010 11:51:39 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756880Ab0ANQvj (ORCPT ); Thu, 14 Jan 2010 11:51:39 -0500 Received: from mail-ew0-f209.google.com ([209.85.219.209]:54822 "EHLO mail-ew0-f209.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754852Ab0ANQvi (ORCPT ); Thu, 14 Jan 2010 11:51:38 -0500 Received: by ewy1 with SMTP id 1so32024ewy.28 for ; Thu, 14 Jan 2010 08:51:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=94J1GJfYu0Dxixg5LFTUno2ni58GrJSxfylUGBJjLFo=; b=jM6TJTInv/pp9Pl6FPYkRr1w1LIlAwEsIjoixYpb/bRTiDnXrzjxPFhrzRb33tXWO5 n2xT/8Kw8G+4SoFjWMYvfIVdoTyUoCRipK7sNXzjFPD+ZDpJ3LDSHUplBM55V9rm+ARV k2cofHYcQrN/5GAUWHjA+rOkooZ0OuSS9TLt0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=gjyI1gYYzH8ccLcg+UIDFbHqv9hTXT1Kn+x8cBXKGNwSOWzk2OAccrick5cSbGMK3V AzS5NSKezCEM/TqGn5HiW5XhAzSDLKhWTBw15TsgJBDIykYj7c384j7Dc1XGVmDgwKh3 o4GGekLkF9viCz0bzxuxl1Frz3Gp/QFiJLjTY= Received: by 10.213.24.2 with SMTP id t2mr2900775ebb.6.1263487887427; Thu, 14 Jan 2010 08:51:27 -0800 (PST) Received: from zoinx.mars (d133062.upc-d.chello.nl [213.46.133.62]) by mx.google.com with ESMTPS id 16sm669483ewy.2.2010.01.14.08.51.25 (version=SSLv3 cipher=RC4-MD5); Thu, 14 Jan 2010 08:51:26 -0800 (PST) Message-ID: <4B4F4C9B.9040202@gmail.com> Date: Thu, 14 Jan 2010 17:55:55 +0100 From: Roel Kluin User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.5) Gecko/20091209 Fedora/3.0-4.fc12 Thunderbird/3.0 MIME-Version: 1.0 To: "David S. Miller" , sparclinux@vger.kernel.org, Andrew Morton , LKML Subject: [PATCH] sparc: leds_resource.end assigned to itself in clock_board_probe() Sender: sparclinux-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: sparclinux@vger.kernel.org These statements appear redundant. Signed-off-by: Roel Kluin --- Is there any reason to assign this to itself? -- To unsubscribe from this list: send the line "unsubscribe sparclinux" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/sparc/kernel/central.c b/arch/sparc/kernel/central.c index f3b5466..773caf4 100644 --- a/arch/sparc/kernel/central.c +++ b/arch/sparc/kernel/central.c @@ -99,7 +99,6 @@ static int __devinit clock_board_probe(struct of_device *op, p->leds_resource.start = (unsigned long) (p->clock_regs + CLOCK_CTRL); - p->leds_resource.end = p->leds_resource.end; p->leds_resource.name = "leds"; p->leds_pdev.name = "sunfire-clockboard-leds"; @@ -194,7 +193,6 @@ static int __devinit fhc_probe(struct of_device *op, if (!p->central) { p->leds_resource.start = (unsigned long) (p->pregs + FHC_PREGS_CTRL); - p->leds_resource.end = p->leds_resource.end; p->leds_resource.name = "leds"; p->leds_pdev.name = "sunfire-fhc-leds";