lkml.org 
[lkml]   [2014]   [Jan]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 3/7] ipc: remove useless return statement
Date
Only found in ipc_rmid().

Signed-off-by: Davidlohr Bueso <davidlohr@hp.com>
---
ipc/util.c | 4 ----
1 file changed, 4 deletions(-)

diff --git a/ipc/util.c b/ipc/util.c
index cfbd8fa..7afe7de 100644
--- a/ipc/util.c
+++ b/ipc/util.c
@@ -439,12 +439,8 @@ void ipc_rmid(struct ipc_ids *ids, struct kern_ipc_perm *ipcp)
int lid = ipcid_to_idx(ipcp->id);

idr_remove(&ids->ipcs_idr, lid);
-
ids->in_use--;
-
ipcp->deleted = true;
-
- return;
}

/**
--
1.8.1.4


\
 
 \ /
  Last update: 2014-01-10 20:01    [W:0.928 / U:0.464 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site