lkml.org 
[lkml]   [2005]   [Mar]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH][7/7] cifs: file.c cleanups in incremental bits - condense an 'if () else if ()' block.

This (attached) patch shortens an 'if () else if ()' block in
cifs_partialpagewrite

Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk>


--
Jesper Juhl

diff -up linux-2.6.11-mm3/fs/cifs/file.c.with_patch_7 linux-2.6.11-mm3/fs/cifs/file.c
--- linux-2.6.11-mm3/fs/cifs/file.c.with_patch_7 2005-03-16 13:42:31.000000000 +0100
+++ linux-2.6.11-mm3/fs/cifs/file.c 2005-03-16 13:43:31.000000000 +0100
@@ -907,9 +907,7 @@ static int cifs_partialpagewrite(struct
struct list_head *tmp;
struct list_head *tmp1;

- if (!mapping)
- return -EFAULT;
- else if (!mapping->host)
+ if (!mapping || !mapping->host)
return -EFAULT;

inode = page->mapping->host;
\
 
 \ /
  Last update: 2005-03-22 14:11    [W:0.026 / U:0.068 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site