[PATCH] audit: removing unused variable

Paul Moore paul at paul-moore.com
Thu Oct 29 14:06:14 UTC 2015


On Wed, Oct 28, 2015 at 6:12 PM, Joe Perches <joe at perches.com> wrote:
> On Wed, 2015-10-28 at 16:35 -0400, Paul Moore wrote:
>> On Wednesday, October 28, 2015 09:40:34 AM Saurabh Sengar wrote:
>> > variavle rc in not required as it is just used for unchanged for return,
>> > and return is always 0 in the function.
> []
>> Thanks, applied with some spelling corrections to the description.
>
> As the return value is never actually tested,
> it seems better to make it a void function,

Agreed, I did just that yesterday.

 * https://www.redhat.com/archives/linux-audit/2015-October/msg00125.html

-- 
paul moore
www.paul-moore.com




More information about the Linux-audit mailing list