Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1221605
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Maitesin <oscar.forner.martinez@gmail.com> |
| Newsgroups | linux.kernel |
| Subject | [PATCH 2/2] fs: isofs: Fix several coding style issues |
| Date | Wed, 09 Sep 2015 20:10:03 +0200 |
| Message-ID | <q6RYL-2ez-29@gated-at.bofh.it> (permalink) |
| References | <q6RYK-2ez-25@gated-at.bofh.it> |
| X-Original-To | linux-kernel@vger.kernel.org |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=NkEMhE2qicnpRu13Ndha+sWvQg25jMBytdV0IqYZhyk=; b=0yZgQXvly2EUix++ooA4egBryiMZDve1A2BTBzjT266WKfWYPjnITD4ybcBkRTPTAu 78VGeAoHBWrcvmKkoBbREe7NYnFeABXJ76QybNVbY/FqtNFww3r70zXayx1H6VrYxXSn E6jb8J7Ke33vBt3edl99AW1A/9bwh3oZUwPznOuMxywa5AhBYT+5m5Vhree5zsk9BkNA dyJCbOny+4TaYY3zWOd6IvL1b5bOaOOBBjpwY2ZEOoOEvhI5K4Aezlz07tX/3UJE2bKB dslNrO3IL5FAL4wI0T2Sl3vMxske+iZ4XIv/aR3MbE26q91Gxbf6mKkwgA4DRAAd9oFc tR/g== |
| X-Received | by 10.180.107.164 with SMTP id hd4mr59062779wib.94.1441821651052; Wed, 09 Sep 2015 11:00:51 -0700 (PDT) |
| X-Google-Original-From | Maitesin <violador.de.segmentos@gmail.com> |
| X-Mailer | git-send-email 2.5.1 |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 66 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | Maitesin <violador.de.segmentos@gmail.com>, Oscar Forner Martinez <oscar.forner.martinez@gmail.com> |
| X-Original-Date | Wed, 9 Sep 2015 19:00:19 +0100 |
| X-Original-Message-ID | <f6159b91b9d68df338ad2ff73d6a883705b46f54.1441821001.git.violador.de.segmentos@gmail.com> |
| X-Original-References | <cover.1441821001.git.violador.de.segmentos@gmail.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1221605 |
Show key headers only | View raw
As recommended I fixed several coding style issues related with whitespaces.
Signed-off-by: Oscar Forner Martinez <oscar.forner.martinez@gmail.com>
---
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH 0/2] Fix coding style issues and a consistence change. Maitesin <oscar.forner.martinez@gmail.com> - 2015-09-09 20:10 +0200 [PATCH 2/2] fs: isofs: Fix several coding style issues Maitesin <oscar.forner.martinez@gmail.com> - 2015-09-09 20:10 +0200
csiph-web