summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/savage
diff options
context:
space:
mode:
authorGreg Dietsche <Gregory.Dietsche@cuw.edu>2011-06-13 09:40:38 -0500
committerDave Airlie <airlied@redhat.com>2011-06-14 09:29:12 +1000
commit96bf8bd1c953c3b9d89eac9f13dfdbf5e580060f (patch)
tree59c5eebae7d5666e8518cb645164d81757c85ed3 /drivers/gpu/drm/savage
parent303c805cb4dc1f5bc1d21f1c3757da0eae1e4f84 (diff)
downloadop-kernel-dev-96bf8bd1c953c3b9d89eac9f13dfdbf5e580060f.zip
op-kernel-dev-96bf8bd1c953c3b9d89eac9f13dfdbf5e580060f.tar.gz
savage: remove unnecessary if statement
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>
Diffstat (limited to 'drivers/gpu/drm/savage')
-rw-r--r--drivers/gpu/drm/savage/savage_bci.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/gpu/drm/savage/savage_bci.c b/drivers/gpu/drm/savage/savage_bci.c
index bf5f83e..cb1ee4e 100644
--- 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;
}
OpenPOWER on IntegriCloud