]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - ipc/util.c
ipc: drop ipc_lock_check
[karo-tx-linux.git] / ipc / util.c
index 9f6aa30d2e0fd9b9f25eb60af978b2e23ae06fe4..e829da9ed01f3dbe2973fd232a4f2b889f401c9c 100644 (file)
@@ -686,22 +686,6 @@ out:
        return out;
 }
 
-struct kern_ipc_perm *ipc_lock_check(struct ipc_ids *ids, int id)
-{
-       struct kern_ipc_perm *out;
-
-       out = ipc_lock(ids, id);
-       if (IS_ERR(out))
-               return out;
-
-       if (ipc_checkid(out, id)) {
-               ipc_unlock(out);
-               return ERR_PTR(-EIDRM);
-       }
-
-       return out;
-}
-
 /**
  * ipcget - Common sys_*get() code
  * @ns : namsepace