lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Sun, 3 Jun 2012 15:26:51 +0200
From:	richard -rw- weinberger <richard.weinberger@...il.com>
To:	bing deng <deng8bing@...il.com>
Cc:	Il Han <corone.il.han@...il.com>, David Airlie <airlied@...ux.ie>,
	dri-devel@...ts.freedesktop.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] drm: An uninitialized return value is returned.

On Sun, Jun 3, 2012 at 2:26 PM, bing deng <deng8bing@...il.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@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ