NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/50898: src/sys/dev/pci/n8/common/api/n8_rsa.c: pointless call to memset ?
> [src/sys/dev/pci/n8/common/api/n8_rsa.c:1075]
> memset(vAddr, 0, nBytes);
> memset(vAddr, 0x0, padding);
>
> The second one looks redundant to me.
Only if padding <= nBytes, otherwise first one would be the redundant,
statement. But yes, definitely looks bogus.
Maybe something like ``memset(vAddr + nBytes, 0, padding)'' was intended?
What are real-world values of nBytes and padding?
Home |
Main Index |
Thread Index |
Old Index