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

Signed-off-by: Jesper Juhl <[EMAIL PROTECTED]>


-- 
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;

Reply via email to