From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755847AbbHLJmV (ORCPT ); Wed, 12 Aug 2015 05:42:21 -0400 Received: from mail-pd0-f175.google.com ([209.85.192.175]:36198 "EHLO mail-pd0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755829AbbHLJmR (ORCPT ); Wed, 12 Aug 2015 05:42:17 -0400 From: yalin wang To: mingo@kernel.org, yalin.wang2010@gmail.com, dave@sr71.net, akpm@linux-foundation.org, bhe@redhat.com, linux-kernel@vger.kernel.org Subject: [PATCH] proc/kcore: remove unneeded white spaces Date: Wed, 12 Aug 2015 17:41:27 +0800 Message-Id: <1439372487-29876-1-git-send-email-yalin.wang2010@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: yalin wang --- fs/proc/kcore.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fs/proc/kcore.c b/fs/proc/kcore.c index 92e6726..3782dd1 100644 --- a/fs/proc/kcore.c +++ b/fs/proc/kcore.c @@ -86,8 +86,8 @@ static size_t get_kcore_size(int *nphdr, size_t *elf_buflen) size = try; *nphdr = *nphdr + 1; } - *elf_buflen = sizeof(struct elfhdr) + - (*nphdr + 2)*sizeof(struct elf_phdr) + + *elf_buflen = sizeof(struct elfhdr) + + (*nphdr + 2)*sizeof(struct elf_phdr) + 3 * ((sizeof(struct elf_note)) + roundup(sizeof(CORE_STR), 4)) + roundup(sizeof(struct elf_prstatus), 4) + @@ -485,7 +485,7 @@ read_kcore(struct file *file, char __user *buffer, size_t buflen, loff_t *fpos) start = kc_offset_to_vaddr(*fpos - elf_buflen); if ((tsz = (PAGE_SIZE - (start & ~PAGE_MASK))) > buflen) tsz = buflen; - + while (buflen) { struct kcore_list *m; @@ -523,7 +523,7 @@ read_kcore(struct file *file, char __user *buffer, size_t buflen, loff_t *fpos) * we clear too and hope it will trigger the * EFAULT again. */ - if (n) { + if (n) { if (clear_user(buffer + tsz - n, n)) return -EFAULT; -- 1.9.1