summaryrefslogtreecommitdiff
path: root/linux-core
diff options
context:
space:
mode:
Diffstat (limited to 'linux-core')
-rw-r--r--linux-core/xgi_drv.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/linux-core/xgi_drv.c b/linux-core/xgi_drv.c
index c4e7daae..bcb6946d 100644
--- a/linux-core/xgi_drv.c
+++ b/linux-core/xgi_drv.c
@@ -286,11 +286,8 @@ void xgi_kern_isr_bh(struct drm_device *dev)
int xgi_driver_load(struct drm_device *dev, unsigned long flags)
{
- struct xgi_info *info;
- int err;
-
+ struct xgi_info *info = drm_alloc(sizeof(*info), DRM_MEM_DRIVER);
- info = drm_alloc(sizeof(*info), DRM_MEM_DRIVER);
if (!info)
return DRM_ERR(ENOMEM);