mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH][6/7] cifs: dir.c cleanup - long lines 1
@ 2005-04-02 22:57 Jesper Juhl
  0 siblings, 0 replies; only message in thread
From: Jesper Juhl @ 2005-04-02 22:57 UTC (permalink / raw)
  To: Steve French; +Cc: Steven French, linux-kernel

Lines should be <80 chars in length.

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


--- linux-2.6.12-rc1-mm4/fs/cifs/dir.c.with_patch5	2005-04-03 00:06:17.000000000 +0200
+++ linux-2.6.12-rc1-mm4/fs/cifs/dir.c	2005-04-03 00:07:59.000000000 +0200
@@ -193,9 +193,9 @@ int cifs_create(struct inode *inode, str
 	}
 
 	if (nd) {
-		if ((nd->intent.open.flags & O_ACCMODE) == O_RDONLY)
+		if ((nd->intent.open.flags & O_ACCMODE) == O_RDONLY) {
 			desiredAccess = GENERIC_READ;
-		else if ((nd->intent.open.flags & O_ACCMODE) == O_WRONLY) {
+		} else if ((nd->intent.open.flags & O_ACCMODE) == O_WRONLY) {
 			desiredAccess = GENERIC_WRITE;
 			write_only = TRUE;
 		} else if ((nd->intent.open.flags & O_ACCMODE) == O_RDWR) {
@@ -205,15 +205,16 @@ int cifs_create(struct inode *inode, str
 			desiredAccess = GENERIC_READ | GENERIC_WRITE;
 		}
 
-		if ((nd->intent.open.flags & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL))
+		if ((nd->intent.open.flags & (O_CREAT | O_EXCL)) ==
+		    (O_CREAT | O_EXCL))
 			disposition = FILE_CREATE;
-		else if ((nd->intent.open.flags & (O_CREAT | O_TRUNC)) == (O_CREAT | O_TRUNC))
+		else if ((nd->intent.open.flags & (O_CREAT | O_TRUNC)) ==
+			 (O_CREAT | O_TRUNC))
 			disposition = FILE_OVERWRITE_IF;
 		else if ((nd->intent.open.flags & O_CREAT) == O_CREAT)
 			disposition = FILE_OPEN_IF;
-		else {
+		else
 			cFYI(1, ("Create flag not set in create function"));
-		}
 	}
 
 	/* BB add processing to set equivalent of mode -

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-04-02 23:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-02 22:57 [PATCH][6/7] cifs: dir.c cleanup - long lines 1 Jesper Juhl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®