lkml.org 
[lkml]   [2012]   [Jun]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] drm: An uninitialized return value is returned.
From
On Sun, Jun 3, 2012 at 2:26 PM, bing deng <deng8bing@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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2012-06-03 16:21    [W:0.048 / U:0.984 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site