projects
/
linux-flexiantxendom0-3.2.10.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f5cf06
)
[PATCH] Cleanup in fs_devpts_inode.c
author
Rusty Russell <rusty@rustcorp.com.au>
Mon, 26 May 2003 10:00:37 +0000
(
03:00
-0700)
committer
Linus Torvalds <torvalds@home.transmeta.com>
Mon, 26 May 2003 10:00:37 +0000
(
03:00
-0700)
From: René Scharfe <l.s.r@web.de>
This un-complicates a small piece of code of the dev/pts filesystem
and decreases the size of the object code by 8 bytes for my build.
Yay! :)
fs/devpts/inode.c
patch
|
blob
|
history
diff --git
a/fs/devpts/inode.c
b/fs/devpts/inode.c
index
64a9788
..
dacf0e2
100644
(file)
--- a/
fs/devpts/inode.c
+++ b/
fs/devpts/inode.c
@@
-183,9
+183,8
@@
static int __init init_devpts_fs(void)
err = register_filesystem(&devpts_fs_type);
if (!err) {
devpts_mnt = kern_mount(&devpts_fs_type);
- err = PTR_ERR(devpts_mnt);
- if (!IS_ERR(devpts_mnt))
- err = 0;
+ if (IS_ERR(devpts_mnt))
+ err = PTR_ERR(devpts_mnt);
}
return err;
}