public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] 2.4.27 fs/open.c code small cleanup
@ 2004-08-13  5:49 Nikolay
  2004-08-13  3:02 ` William Lee Irwin III
  2004-08-13  5:02 ` Willy Tarreau
  0 siblings, 2 replies; 4+ messages in thread
From: Nikolay @ 2004-08-13  5:49 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 101 bytes --]

A little clean up, soon I'll send few bug fixes and cleanups.

(see the attached file for more info)

[-- Attachment #2: kernel.diff --]
[-- Type: application/octet-stream, Size: 1232 bytes --]

diff -u linux-2.4.27/MAINTAINERS linux-2.4.27/MAINTAINERS
--- linux-2.4.27/MAINTAINERS	2004-08-09 02:48:53.000000000 +0300
+++ linux-2.4.27/MAINTAINERS	2004-08-09 02:51:04.000000000 +0300
@@ -1806,6 +1806,12 @@
 L:	linux-video@atrey.karlin.mff.cuni.cz
 S:	Maintained
 
+SYS_FSTATFS CODE CLEANUP
+P:      Nikolay Alexandrov
+M:      Nikolay@Alexandrov.ws
+W:      http://kstats.blackwall.org
+S:      Maintained
+
 SYSV FILESYSTEM
 P:	Christoph Hellwig
 M:	hch@infradead.org
diff -u linux-2.4.27/fs/open.c linux-2.4.27/fs/open.c
--- linux-2.4.27/fs/open.c  2004-08-09 02:22:58.000000000 +0300
+++ linux-2.4.27/fs/open.c      2004-08-09 02:24:48.000000000 +0300
@@ -2,6 +2,7 @@
  *  linux/fs/open.c
  *
  *  Copyright (C) 1991, 1992  Linus Torvalds
+ *  08.08.2004 - vfs_fstatfs code cleanup -- Nikolay Alexandrov (Nikolay@Alexandrov.ws)
  */

 #include <linux/string.h>
@@ -62,12 +63,11 @@
        error = -EBADF;
        file = fget(fd);
        if (!file)
-               goto out;
+               return error;
        error = vfs_statfs(file->f_dentry->d_inode->i_sb, &tmp);
        if (!error && copy_to_user(buf, &tmp, sizeof(struct statfs)))
                error = -EFAULT;
        fput(file);
-out:
        return error;
 }

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-08-13 17:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-13  5:49 [PATCH] 2.4.27 fs/open.c code small cleanup Nikolay
2004-08-13  3:02 ` William Lee Irwin III
2004-08-13  5:02 ` Willy Tarreau
2004-08-13 16:26   ` Marcelo Tosatti

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