From: Sasha Levin Date: Thu, 20 Dec 2012 19:11:30 +0000 (-0500) Subject: uprobes: remove redundant check X-Git-Tag: Ubuntu-5.0.0-8.9~14352^2~13^2~45 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=c91368c4889a0ee5dd06552adbb50ae54f5096fd;p=mirror_ubuntu-disco-kernel.git uprobes: remove redundant check We checked for uprobe==NULL earlier, no need to redo that. Signed-off-by: Sasha Levin Cc: Ingo Molnar Cc: Paul Mackerras Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/1356030701-16284-22-git-send-email-sasha.levin@oracle.com Signed-off-by: Arnaldo Carvalho de Melo --- 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 *