projects
/
platform
/
kernel
/
linux-3.10.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
303c805
)
savage: remove unnecessary if statement
author
Greg Dietsche
<Gregory.Dietsche@cuw.edu>
Mon, 13 Jun 2011 14:40:38 +0000
(09:40 -0500)
committer
Dave Airlie
<airlied@redhat.com>
Mon, 13 Jun 2011 23:29:12 +0000
(09:29 +1000)
the code always returns ret regardless, so if(ret) check is unnecessary.
v2: fixed up the spelling.
Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu>
Reviewed-by: Nicolas Kaiser <nikai@nikai.net>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/savage/savage_bci.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/savage/savage_bci.c
b/drivers/gpu/drm/savage/savage_bci.c
index
bf5f83e
..
cb1ee4e
100644
(file)
--- a/
drivers/gpu/drm/savage/savage_bci.c
+++ b/
drivers/gpu/drm/savage/savage_bci.c
@@
-647,9
+647,6
@@
int savage_driver_firstopen(struct drm_device *dev)
ret = drm_addmap(dev, aperture_base, SAVAGE_APERTURE_SIZE,
_DRM_FRAME_BUFFER, _DRM_WRITE_COMBINING,
&dev_priv->aperture);
- if (ret)
- return ret;
-
return ret;
}