[PATCH] drm: An uninitialized return value is returned.

richard -rw- weinberger richard.weinberger at gmail.com
Sun Jun 3 06:26:51 PDT 2012


On Sun, Jun 3, 2012 at 2:26 PM, bing deng <deng8bing at gmail.com> wrote:
> Hi All,
>
>    Why not modify "int ret;" to "int ret = 0;"? Below is the benefit:
>    1. return the constant 0 as wish.
>    2. The variable ret can be used if we want.

Why? ret is in vain and wastes memory...

-- 
Thanks,
//richard


More information about the dri-devel mailing list