]> git.baikalelectronics.ru Git - kernel.git/commit
gpu, drm, sis: Don't return uninitialized variable from sis_driver_load()
authorJesper Juhl <jj@chaosbits.net>
Sat, 14 Jan 2012 20:20:37 +0000 (21:20 +0100)
committerDave Airlie <airlied@redhat.com>
Mon, 23 Jan 2012 11:00:47 +0000 (11:00 +0000)
commit67805224becf7dbad8e76cd59367f7f1709f8c31
treed9e4b549a79023450f6fb429738f6c6ba1589187
parent1e5ed5b4d5a9924b9ec96032051e81bc6340728e
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>
drivers/gpu/drm/sis/sis_drv.c