mirror of
https://github.com/torvalds/linux.git
synced 2026-11-23 23:11:40 +00:00
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 <[email protected]> Reviewed-by: Nicolas Kaiser <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
This commit is contained in:
committed by
Dave Airlie
parent
303c805cb4
commit
96bf8bd1c9
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user