lkml.org 
[lkml]   [2012]   [Dec]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] cgroup: remove redundant check
Date
We already know that 'event' is non-NULL, remove the redundant check.

Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
---
kernel/cgroup.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/cgroup.c b/kernel/cgroup.c
index 4855892..8d6c3f2 100644
--- a/kernel/cgroup.c
+++ b/kernel/cgroup.c
@@ -3898,7 +3898,7 @@ fail:
if (cfile)
fput(cfile);

- if (event && event->eventfd && !IS_ERR(event->eventfd))
+ if (event->eventfd && !IS_ERR(event->eventfd))
eventfd_ctx_put(event->eventfd);

if (!IS_ERR_OR_NULL(efile))
--
1.8.0


\
 
 \ /
  Last update: 2012-12-20 21:21    [W:0.181 / U:5.904 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site