mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-24 21:50:20 +01:00
Eliminate unnecessary function xgi_pcie_free_locked.
This commit is contained in:
parent
a6fb93a150
commit
5362cc723e
1 changed files with 2 additions and 12 deletions
|
|
@ -28,9 +28,6 @@
|
|||
#include "xgi_regs.h"
|
||||
#include "xgi_misc.h"
|
||||
|
||||
static int xgi_pcie_free_locked(struct xgi_info * info,
|
||||
unsigned long offset, struct drm_file * filp);
|
||||
|
||||
static int xgi_pcie_lut_init(struct xgi_info * info)
|
||||
{
|
||||
u8 temp = 0;
|
||||
|
|
@ -206,27 +203,20 @@ void xgi_pcie_free_all(struct xgi_info * info, struct drm_file * filp)
|
|||
break;
|
||||
}
|
||||
|
||||
(void) xgi_pcie_free_locked(info, block->offset, filp);
|
||||
(void) xgi_mem_free(&info->pcie_heap, block->offset, filp);
|
||||
} while(1);
|
||||
|
||||
up(&info->pcie_sem);
|
||||
}
|
||||
|
||||
|
||||
int xgi_pcie_free_locked(struct xgi_info * info, unsigned long offset,
|
||||
struct drm_file * filp)
|
||||
{
|
||||
return xgi_mem_free(&info->pcie_heap, offset, filp);
|
||||
}
|
||||
|
||||
|
||||
int xgi_pcie_free(struct xgi_info * info, unsigned long offset,
|
||||
struct drm_file * filp)
|
||||
{
|
||||
int err;
|
||||
|
||||
down(&info->pcie_sem);
|
||||
err = xgi_pcie_free_locked(info, offset, filp);
|
||||
err = xgi_mem_free(&info->pcie_heap, offset, filp);
|
||||
up(&info->pcie_sem);
|
||||
|
||||
if (err) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue