From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754164AbbIISBA (ORCPT ); Wed, 9 Sep 2015 14:01:00 -0400 Received: from mail-wi0-f180.google.com ([209.85.212.180]:34270 "EHLO mail-wi0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754036AbbIISAw (ORCPT ); Wed, 9 Sep 2015 14:00:52 -0400 From: Maitesin X-Google-Original-From: Maitesin To: linux-kernel@vger.kernel.org Cc: Maitesin , Oscar Forner Martinez Subject: [PATCH 2/2] fs: isofs: Fix several coding style issues Date: Wed, 9 Sep 2015 19:00:19 +0100 Message-Id: X-Mailer: git-send-email 2.5.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As recommended I fixed several coding style issues related with whitespaces. Signed-off-by: Oscar Forner Martinez --- fs/isofs/compress.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/fs/isofs/compress.c b/fs/isofs/compress.c index 5750830..107a078 100644 --- a/fs/isofs/compress.c +++ b/fs/isofs/compress.c @@ -67,7 +67,7 @@ static loff_t zisofs_uncompress_block(struct inode *inode, loff_t block_start, } /* Empty block? */ if (!block_size) { - for (i = 0 ; i < pcount ; i++) { + for (i = 0; i < pcount; i++) { if (!pages[i]) continue; memset(page_address(pages[i]), 0, PAGE_CACHE_SIZE); @@ -103,7 +103,7 @@ static loff_t zisofs_uncompress_block(struct inode *inode, loff_t block_start, stream.workspace = zisofs_zlib_workspace; mutex_lock(&zisofs_zlib_lock); - + zerr = zlib_inflateInit(&stream); if (zerr != Z_OK) { if (zerr == Z_MEM_ERROR) @@ -134,7 +134,7 @@ static loff_t zisofs_uncompress_block(struct inode *inode, loff_t block_start, *errp = -EIO; break; } - stream.next_in = bhs[curbh]->b_data + + stream.next_in = bhs[curbh]->b_data + (block_start & bufmask); stream.avail_in = min_t(unsigned, bufsize - (block_start & bufmask), @@ -353,7 +353,7 @@ static int zisofs_readpage(struct file *file, struct page *page) if (i != full_page) page_cache_release(pages[i]); } - } + } /* At this point, err contains 0 or -EIO depending on the "critical" page */ return err; @@ -368,9 +368,8 @@ const struct address_space_operations zisofs_aops = { int __init zisofs_init(void) { zisofs_zlib_workspace = vmalloc(zlib_inflate_workspacesize()); - if ( !zisofs_zlib_workspace ) + if (!zisofs_zlib_workspace) return -ENOMEM; - return 0; } -- 2.5.1