diff options
author | 2020-12-13 03:15:52 +0000 | |
---|---|---|
committer | 2020-12-13 03:15:52 +0000 | |
commit | db0fc38d112d3f4890eadffbbe558bc4ae933a38 (patch) | |
tree | e18b5c400245612b9fa4b9ef48025b931d72db23 /sys/dev/pci/drm/drm_linux.c | |
parent | Correct wrong type of variable and remove useless casts. (diff) | |
download | wireguard-openbsd-db0fc38d112d3f4890eadffbbe558bc4ae933a38.tar.xz wireguard-openbsd-db0fc38d112d3f4890eadffbbe558bc4ae933a38.zip |
remove unused wait interfaces
Diffstat (limited to 'sys/dev/pci/drm/drm_linux.c')
-rw-r--r-- | sys/dev/pci/drm/drm_linux.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/sys/dev/pci/drm/drm_linux.c b/sys/dev/pci/drm/drm_linux.c index ef138c2175b..ac90dc7db13 100644 --- a/sys/dev/pci/drm/drm_linux.c +++ b/sys/dev/pci/drm/drm_linux.c @@ -1,4 +1,4 @@ -/* $OpenBSD: drm_linux.c,v 1.71 2020/12/10 12:24:06 jsg Exp $ */ +/* $OpenBSD: drm_linux.c,v 1.72 2020/12/13 03:15:52 jsg Exp $ */ /* * Copyright (c) 2013 Jonathan Gray <jsg@openbsd.org> * Copyright (c) 2015, 2016 Mark Kettenis <kettenis@openbsd.org> @@ -1834,20 +1834,12 @@ pcie_get_width_cap(struct pci_dev *pdev) } int -default_wake_function(struct wait_queue_entry *wqe, unsigned int mode, +autoremove_wake_function(struct wait_queue_entry *wqe, unsigned int mode, int sync, void *key) { wakeup(wqe); if (wqe->proc) wake_up_process(wqe->proc); - return 0; -} - -int -autoremove_wake_function(struct wait_queue_entry *wqe, unsigned int mode, - int sync, void *key) -{ - default_wake_function(wqe, mode, sync, key); list_del_init(&wqe->entry); return 0; } |