Skip to content

Commit

Permalink
savage: remove unnecessary if statement
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Greg Dietsche authored and Dave Airlie committed Jun 13, 2011
1 parent 303c805 commit 96bf8bd
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/gpu/drm/savage/savage_bci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 96bf8bd

Please sign in to comment.