diff options
author | Ian Romanick <idr@us.ibm.com> | 2007-07-19 19:09:24 -0700 |
---|---|---|
committer | Ian Romanick <idr@us.ibm.com> | 2007-07-19 19:09:24 -0700 |
commit | 56665a42f470d5cf8cb4865558cb658dff15a9dd (patch) | |
tree | 294530a1841a68f54d057778184d7cf1e5c5ac93 /linux-core/xgi_drv.c | |
parent | 970674f4867d65bd16cf3585d46930b72a827cce (diff) |
Delete unused variable in xgi_driver_load.
Diffstat (limited to 'linux-core/xgi_drv.c')
-rw-r--r-- | linux-core/xgi_drv.c | 5 |
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); |