From patchwork Fri May 20 13:14:30 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: wanlong.gao@gmail.com X-Patchwork-Id: 96601 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [18.85.46.34]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 776F3B6F84 for ; Fri, 20 May 2011 23:16:35 +1000 (EST) Received: from canuck.infradead.org ([2001:4978:20e::1]) by bombadil.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1QNPY3-0004Xv-P1; Fri, 20 May 2011 13:15:23 +0000 Received: from localhost ([127.0.0.1] helo=canuck.infradead.org) by canuck.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1QNPY2-000752-0M; Fri, 20 May 2011 13:15:22 +0000 Received: from mail-pw0-f49.google.com ([209.85.160.49]) by canuck.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1QNPXu-00074i-6C for linux-mtd@lists.infradead.org; Fri, 20 May 2011 13:15:19 +0000 Received: by pwi8 with SMTP id 8so1985281pwi.36 for ; Fri, 20 May 2011 06:15:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer; bh=kLa0JoI9+96aQo/F3mDKgEgyDgKXKFBvO6pxldvRz1k=; b=VSdfkmKXwse6uF229g7A66UgUcbQtfaZCGkDSEnwVyGTGhNoK+y+UJWvShNjm1MJ+h UNxZlSs841x6Ay1DYG90SGK46MYi2qdg+Pd0XDF4klaAoXO0x9TgglYk5UZceqXR33Fl MCdqisKeV9YgXW4Bl8R/sPQqZqAZcs63slkSQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=jPW8Ks5gdYNVtFSTHeXDHCQV/JKNtESVgUMncqvjVsuISWO9VMt54f2LvHYUO0sk52 lVvUT5ma2laLVtTDnysCTi+dEa8RWdl4wd+6lcCtAFiVA8Q5Rk8n1SUBwnfDojJuygE1 XTbdHVlAkzIFAh6vIGaxjDlpjEI7i1ITeRbpc= Received: by 10.142.204.1 with SMTP id b1mr2546601wfg.194.1305897312086; Fri, 20 May 2011 06:15:12 -0700 (PDT) Received: from localhost.localdomain ([182.32.131.129]) by mx.google.com with ESMTPS id x15sm2413261wfd.12.2011.05.20.06.14.57 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 20 May 2011 06:15:11 -0700 (PDT) From: Wanlong Gao To: Artem Bityutskiy Subject: [PATCH] drivers:mtd:fix the bad format in the mtdcore.c Date: Fri, 20 May 2011 21:14:30 +0800 Message-Id: <1305897270-3685-1-git-send-email-wanlong.gao@gmail.com> X-Mailer: git-send-email 1.7.4.1 X-CRM114-Version: 20090807-BlameThorstenAndJenny ( TRE 0.7.6 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20110520_091514_427842_7076E3EE X-CRM114-Status: GOOD ( 12.44 ) X-Spam-Score: -0.8 (/) X-Spam-Report: SpamAssassin version 3.3.1 on canuck.infradead.org summary: Content analysis details: (-0.8 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.160.49 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is freemail (wanlong.gao[at]gmail.com) -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.0 RFC_ABUSE_POST Both abuse and postmaster missing on sender domain Cc: Wanlong Gao , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-mtd-bounces@lists.infradead.org Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Remove the spare spaces in the head of the lines. Signed-off-by: Wanlong Gao --- drivers/mtd/mtdcore.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/mtd/mtdcore.c b/drivers/mtd/mtdcore.c index 8e19091..f3c9400 100644 --- a/drivers/mtd/mtdcore.c +++ b/drivers/mtd/mtdcore.c @@ -444,7 +444,7 @@ void register_mtd_user (struct mtd_notifier *new) list_add(&new->list, &mtd_notifiers); - __module_get(THIS_MODULE); + __module_get(THIS_MODULE); mtd_for_each_device(mtd) new->add(mtd); @@ -707,9 +707,9 @@ static int mtd_proc_show(struct seq_file *m, void *v) seq_printf(m, "mtd%d: %8.8llx %8.8x \"%s\"\n", mtd->index, (unsigned long long)mtd->size, mtd->erasesize, mtd->name); - } + } mutex_unlock(&mtd_table_mutex); - return 0; + return 0; } static int mtd_proc_open(struct inode *inode, struct file *file) @@ -781,7 +781,7 @@ err_reg: static void __exit cleanup_mtd(void) { #ifdef CONFIG_PROC_FS - if (proc_mtd) + if (proc_mtd) remove_proc_entry( "mtd", NULL); #endif /* CONFIG_PROC_FS */ class_unregister(&mtd_class);