[PATCH v3 10/42] arm64/sve: Make sysctl interface for SVE reusable by SME

Mark Brown broonie at kernel.org
Thu Oct 21 05:15:36 PDT 2021


On Thu, Oct 21, 2021 at 10:55:51AM +0100, Will Deacon wrote:
> On Tue, Oct 19, 2021 at 06:22:15PM +0100, Mark Brown wrote:

> > +	if (!info)
> > +		return -EINVAL;

> Is this check actually needed? If so, you've already dereferenced the
> pointer.

It's redundant, just defensiveness.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20211021/1da61caa/attachment.sig>


More information about the linux-arm-kernel mailing list