[PATCH][7/7] cifs: file.c cleanups in incremental bits - condensean 'if () else if ()' block.

From: Jesper Juhl
Date: Wed Mar 16 2005 - 08:44:16 EST



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

Signed-off-by: Jesper Juhl <juhl-lkml@xxxxxx>


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