summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm/drm_file.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/pci/drm/drm_file.c')
-rw-r--r--sys/dev/pci/drm/drm_file.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/sys/dev/pci/drm/drm_file.c b/sys/dev/pci/drm/drm_file.c
index 029ccc7d195..0396fd01c4c 100644
--- a/sys/dev/pci/drm/drm_file.c
+++ b/sys/dev/pci/drm/drm_file.c
@@ -158,12 +158,7 @@ struct drm_file *drm_file_alloc(struct drm_minor *minor)
struct drm_file *file;
int ret;
-#ifdef __linux__
file = kzalloc(sizeof(*file), GFP_KERNEL);
-#else
- file = kzalloc(max(dev->driver->file_priv_size, sizeof(*file)),
- GFP_KERNEL);
-#endif
if (!file)
return ERR_PTR(-ENOMEM);