From patchwork Sat May 12 00:17:06 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Vorontsov X-Patchwork-Id: 8535 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 9BE9A23E20 for ; Sat, 12 May 2012 00:18:35 +0000 (UTC) Received: from mail-gg0-f180.google.com (mail-gg0-f180.google.com [209.85.161.180]) by fiordland.canonical.com (Postfix) with ESMTP id 64D0BA18C21 for ; Sat, 12 May 2012 00:18:35 +0000 (UTC) Received: by ggnf1 with SMTP id f1so2209445ggn.11 for ; Fri, 11 May 2012 17:18:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:date:from :to:cc:subject:message-id:references:mime-version:content-type :content-disposition:in-reply-to:user-agent:x-gm-message-state; bh=ahMCgdM5glgNcEfuytrQzmQ0gD3YCFIK+jmhAfbP49Y=; b=MCTeTObVhiLXapstnZdYXSFHZzVPtwcLFEtTvZ8b32H4sJ6Bw/Acl+IJopCl2DuvNA fiRMgdTPcLLZn4QHpLzTLUUWNFxpVXW1ZtFs95B6DE4u4WjRo1An8TDwHL+3jUzzWivP o+Y79oUWi3mM5016tI4m2KnWvKuYfMs7a1FXcM+0mWKmUGYV9uDdr6qhWceHPaq9DbbF bQIOoq0XWvAshduK/kNWerp1npp8qklDQrKY27Wd2q5RhcNsW+qDg80rflCkllUeJUFu rUZwgJKxJNQhfGJHJNkpTNp2f+n9ervsT0OtKfob+5LvGMFsfSSVJx9hqIsdwe/u9+rt Y/ng== Received: by 10.50.51.163 with SMTP id l3mr8811igo.3.1336781914729; Fri, 11 May 2012 17:18:34 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.231.73.147 with SMTP id q19csp211469ibj; Fri, 11 May 2012 17:18:34 -0700 (PDT) Received: by 10.68.226.193 with SMTP id ru1mr234386pbc.79.1336781913708; Fri, 11 May 2012 17:18:33 -0700 (PDT) Received: from mail-pz0-f50.google.com (mail-pz0-f50.google.com [209.85.210.50]) by mx.google.com with ESMTPS id qd4si3686412pbc.249.2012.05.11.17.18.33 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 11 May 2012 17:18:33 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.210.50 is neither permitted nor denied by best guess record for domain of anton.vorontsov@linaro.org) client-ip=209.85.210.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.210.50 is neither permitted nor denied by best guess record for domain of anton.vorontsov@linaro.org) smtp.mail=anton.vorontsov@linaro.org Received: by danh15 with SMTP id h15so4584569dan.37 for ; Fri, 11 May 2012 17:18:33 -0700 (PDT) Received: by 10.68.129.131 with SMTP id nw3mr97562pbb.150.1336781913099; Fri, 11 May 2012 17:18:33 -0700 (PDT) Received: from localhost (c-71-204-165-222.hsd1.ca.comcast.net. [71.204.165.222]) by mx.google.com with ESMTPS id nv2sm14254654pbb.6.2012.05.11.17.18.30 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 11 May 2012 17:18:32 -0700 (PDT) Date: Fri, 11 May 2012 17:17:06 -0700 From: Anton Vorontsov To: Greg Kroah-Hartman , Kees Cook , Colin Cross Cc: Arnd Bergmann , John Stultz , arve@android.com, Rebecca Schultz Zavin , Jesper Juhl , Randy Dunlap , Stephen Boyd , Thomas Meyer , Andrew Morton , Marco Stornelli , WANG Cong , linux-kernel@vger.kernel.org, devel@driverdev.osuosl.org, linaro-kernel@lists.linaro.org, patches@linaro.org, kernel-team@android.com Subject: [PATCH 01/11] persistent_ram: Remove prz->node Message-ID: <20120512001706.GA14782@lizard> References: <20120512001506.GA8653@lizard> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20120512001506.GA8653@lizard> User-Agent: Mutt/1.5.21 (2010-09-15) X-Gm-Message-State: ALoCoQkF3/fQmbyy2QLByjm8fM1luUQAe1zIGVUZs8gcXGrDM45zWf4ibEgTdlisHwcjIelZTVTC The 'node' struct member is unused, so remove it. Signed-off-by: Anton Vorontsov --- drivers/staging/android/persistent_ram.c | 2 -- drivers/staging/android/persistent_ram.h | 1 - 2 files changed, 3 deletions(-) diff --git a/drivers/staging/android/persistent_ram.c b/drivers/staging/android/persistent_ram.c index 8407112..12444fd 100644 --- a/drivers/staging/android/persistent_ram.c +++ b/drivers/staging/android/persistent_ram.c @@ -407,8 +407,6 @@ struct persistent_ram_zone *__persistent_ram_init(struct device *dev, bool ecc) goto err; } - INIT_LIST_HEAD(&prz->node); - ret = persistent_ram_buffer_init(dev_name(dev), prz); if (ret) { pr_err("persistent_ram: failed to initialize buffer\n"); diff --git a/drivers/staging/android/persistent_ram.h b/drivers/staging/android/persistent_ram.h index f41e208..5635355 100644 --- a/drivers/staging/android/persistent_ram.h +++ b/drivers/staging/android/persistent_ram.h @@ -38,7 +38,6 @@ struct persistent_ram { }; struct persistent_ram_zone { - struct list_head node; void *vaddr; struct persistent_ram_buffer *buffer; size_t buffer_size;