From: Chris Wright <chris@wirex.com>
To: Linus Torvalds <torvalds@transmeta.com>
Cc: rddunlap@osdl.org, linux-kernel@vger.kernel.org
Subject: [PATCH] 2.5-bk trivial LSM cleanup
Date: Wed, 5 Feb 2003 12:52:51 -0800 [thread overview]
Message-ID: <20030205125251.A30281@figure1.int.wirex.com> (raw)
Hi Linus,
Trivial patch from Randy Dunlap <rddunlap@osdl.org> removes some useless
error/retval assignments.
thanks,
-chris
--
Linux Security Modules http://lsm.immunix.org http://lsm.bkbits.net
--- ./fs/ioctl.c%CLEAN Wed Jan 8 20:03:57 2003
+++ ./fs/ioctl.c Wed Jan 8 20:38:51 2003
@@ -57,7 +57,6 @@
filp = fget(fd);
if (!filp)
goto out;
- error = 0;
error = security_file_ioctl(filp, cmd, arg);
if (error) {
--- ./fs/namespace.c%SCLN Wed Jan 8 20:04:17 2003
+++ ./fs/namespace.c Thu Jan 9 10:48:25 2003
@@ -287,7 +287,7 @@
static int do_umount(struct vfsmount *mnt, int flags)
{
struct super_block * sb = mnt->mnt_sb;
- int retval = 0;
+ int retval;
retval = security_sb_umount(mnt, flags);
if (retval)
--- ./kernel/sys.c%SCLN Thu Jan 9 11:12:29 2003
+++ ./kernel/sys.c Thu Jan 9 11:12:40 2003
@@ -1317,7 +1317,7 @@
asmlinkage long sys_prctl(int option, unsigned long arg2, unsigned long arg3,
unsigned long arg4, unsigned long arg5)
{
- int error = 0;
+ int error;
int sig;
error = security_task_prctl(option, arg2, arg3, arg4, arg5);
reply other threads:[~2003-02-05 20:43 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030205125251.A30281@figure1.int.wirex.com \
--to=chris@wirex.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rddunlap@osdl.org \
--cc=torvalds@transmeta.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®