Messages in this thread Patch in this message | | | Date | Wed, 16 Mar 2005 14:39:16 +0100 (CET) | From | Jesper Juhl <> | 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;
| |