]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
Remove lih_r
authorAndrew Deason <adeason@sinenomine.net>
Mon, 22 Feb 2010 21:58:57 +0000 (15:58 -0600)
committerRuss Allbery <rra@debian.org>
Mon, 22 Mar 2010 22:35:15 +0000 (15:35 -0700)
Nothing references the function lih_r anymore. Remove the dead code, and
be a little more similar to what's on master.

Change-Id: I00262cd27156fc370cd74c35d2e7a0309e1037f9
Reviewed-on: http://gerrit.openafs.org/1369
Tested-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Alistair Ferguson <alistair.ferguson@mac.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 4ca7b6fcc124f473ed5b86bea804a9df5d2c8833)

src/viced/callback.c

index 4b5d04d31ffb4979ea90a135c781bd12afc910b5..4d0cfd51c9b64837e17d78f5867d4d0cd19a28c9 100644 (file)
@@ -292,8 +292,6 @@ static int MultiBreakVolumeCallBack(struct host *host, int isheld,
                                    struct VCBParams *parms);
 static int MultiBreakVolumeLaterCallBack(struct host *host, int isheld,
                                         struct VCBParams *parms);
-static int lih_r(register struct host *host, register int held,
-                register struct host *hostp);
 static int GetSomeSpace_r(struct host *hostp, int locked);
 static int ClearHostCallbacks_r(struct host *hp, int locked);
 
@@ -1580,23 +1578,6 @@ CleanupTimedOutCallBacks_r(void)
 static struct host *lih_host;
 static int lih_host_held;
 
-static int
-lih_r(register struct host *host, register int held,
-      register struct host *hostp)
-{
-    if (host->cblist
-       && ((hostp && host != hostp) || (!held && !h_OtherHolds_r(host)))
-       && (!lih_host || host->ActiveCall < lih_host->ActiveCall)) {
-       if (lih_host != NULL && lih_host_held) {
-           h_Release_r(lih_host);
-       }
-       lih_host = host;
-       lih_host_held = !held;
-       held = 1;
-    }
-    return held;
-}
-
 /* This version does not allow 'host' to be selected unless its ActiveCall 
  * is newer than 'hostp' which is the host with the oldest ActiveCall from
  * the last pass (if it is provided).  We filter out any hosts that are