Commit d40e211f authored by Domen Puncer's avatar Domen Puncer Committed by Tony Luck

[IA64] sn_hwperf.c: vfree() checking cleanups

Signed-off by: James Lamanna <jlamanna@gmail.com>
Signed-off-by: default avatarDomen Puncer <domen@coderock.org>
Signed-off-by: default avatarTony Luck <tony.luck@intel.com>
parent 4569dcef
...@@ -530,7 +530,6 @@ sn_hwperf_ioctl(struct inode *in, struct file *fp, u32 op, u64 arg) ...@@ -530,7 +530,6 @@ sn_hwperf_ioctl(struct inode *in, struct file *fp, u32 op, u64 arg)
} }
error: error:
if (p)
vfree(p); vfree(p);
lock_kernel(); lock_kernel();
...@@ -642,7 +641,6 @@ int sn_topology_release(struct inode *inode, struct file *file) ...@@ -642,7 +641,6 @@ int sn_topology_release(struct inode *inode, struct file *file)
{ {
struct seq_file *seq = file->private_data; struct seq_file *seq = file->private_data;
if (seq->private)
vfree(seq->private); vfree(seq->private);
return seq_release(inode, file); return seq_release(inode, file);
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment