selinux: Delete unnecessary variable assignments in policydb_index()

Paul Moore paul at paul-moore.com
Mon Mar 27 18:20:50 UTC 2017


On Mon, Mar 27, 2017 at 2:24 AM, SF Markus Elfring
<elfring at users.sourceforge.net> wrote:
>> However, I agree with Casey that this patch is mostly just code churn
>> so I'm going to drop this from your series.
>
> How do you think about to return only constant error codes in this function?
> Would it be acceptable to replace any statements “goto out;” with
> “return -ENOMEM;” here instead?

Yes.

-- 
paul moore
www.paul-moore.com
--
To unsubscribe from this list: send the line "unsubscribe linux-security-module" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



More information about the Linux-security-module-archive mailing list