commit | 4e087a7a1f3884750790bda580e22e9eccd5f4fa | [log] [tgz] |
---|---|---|
author | Jesper Juhl <jj@chaosbits.net> | Sat Jan 14 21:20:37 2012 +0100 |
committer | Dave Airlie <airlied@redhat.com> | Mon Jan 23 11:00:47 2012 +0000 |
tree | d9e4b549a79023450f6fb429738f6c6ba1589187 | |
parent | dcd6c92267155e70a94b3927bce681ce74b80d1f [diff] |
gpu, drm, sis: Don't return uninitialized variable from sis_driver_load() In sis_driver_load(), the only use of 'ret' is as the return value from the function, unfortunately it is never initialized, so the function just returns garbage when it succeeds. To fix that, remove the variable and just return 0 directly on success. Signed-off-by: Jesper Juhl <jj@chaosbits.net> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Dave Airlie <airlied@redhat.com>