summaryrefslogtreecommitdiffstats
path: root/kernel/events/uprobes.c
diff options
context:
space:
mode:
authorSasha Levin <sasha.levin@oracle.com>2012-12-20 20:11:30 +0100
committerArnaldo Carvalho de Melo <acme@redhat.com>2013-01-24 20:40:15 +0100
commitc91368c4889a0ee5dd06552adbb50ae54f5096fd (patch)
treedc3240ba5b9dbef8256116b90e4ff6276d474034 /kernel/events/uprobes.c
parentperf script: use ARRAY_SIZE instead of reinventing it (diff)
downloadlinux-c91368c4889a0ee5dd06552adbb50ae54f5096fd.tar.xz
linux-c91368c4889a0ee5dd06552adbb50ae54f5096fd.zip
uprobes: remove redundant check
We checked for uprobe==NULL earlier, no need to redo that. Signed-off-by: Sasha Levin <sasha.levin@oracle.com> Cc: Ingo Molnar <mingo@redhat.com> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/r/1356030701-16284-22-git-send-email-sasha.levin@oracle.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'kernel/events/uprobes.c')
-rw-r--r--kernel/events/uprobes.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/events/uprobes.c b/kernel/events/uprobes.c
index dea7acfbb071..30ea9a4f4ab4 100644
--- a/kernel/events/uprobes.c
+++ b/kernel/events/uprobes.c
@@ -901,8 +901,7 @@ void uprobe_unregister(struct inode *inode, loff_t offset, struct uprobe_consume
}
mutex_unlock(uprobes_hash(inode));
- if (uprobe)
- put_uprobe(uprobe);
+ put_uprobe(uprobe);
}
static struct rb_node *