From: domen@coderock.org
To: linux-ia64@vger.kernel.org
Subject: [patch 3/3] sn_hwperf.c - vfree() checking cleanups
Date: Mon, 10 Jan 2005 19:46:38 +0000 [thread overview]
Message-ID: <20050110194638.9154C1F20A@trashy.coderock.org> (raw)
sn_hwperf.c vfree() checking cleanups.
Signed-off by: James Lamanna <jlamanna@gmail.com>
Signed-off-by: Domen Puncer <domen@coderock.org>
---
kj-domen/arch/ia64/sn/kernel/sn2/sn_hwperf.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff -puN arch/ia64/sn/kernel/sn2/sn_hwperf.c~vfree-arch_ia64_sn_kernel_sn2_sn_hwperf arch/ia64/sn/kernel/sn2/sn_hwperf.c
--- kj/arch/ia64/sn/kernel/sn2/sn_hwperf.c~vfree-arch_ia64_sn_kernel_sn2_sn_hwperf 2005-01-10 18:00:56.000000000 +0100
+++ kj-domen/arch/ia64/sn/kernel/sn2/sn_hwperf.c 2005-01-10 18:00:56.000000000 +0100
@@ -529,8 +529,7 @@ sn_hwperf_ioctl(struct inode *in, struct
}
error:
- if (p)
- vfree(p);
+ vfree(p);
lock_kernel();
return r;
@@ -641,7 +640,6 @@ int sn_topology_release(struct inode *in
{
struct seq_file *seq = file->private_data;
- if (seq->private)
- vfree(seq->private);
+ vfree(seq->private);
return seq_release(inode, file);
}
_
next reply other threads:[~2005-01-10 19:46 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-10 19:46 domen [this message]
2005-01-10 20:13 ` [patch 3/3] sn_hwperf.c - vfree() checking cleanups Jesse Barnes
2005-01-10 20:46 ` Domen Puncer
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=20050110194638.9154C1F20A@trashy.coderock.org \
--to=domen@coderock.org \
--cc=linux-ia64@vger.kernel.org \
/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