OpenCloudOS-Kernel/drivers/crypto/cavium
Andy Shevchenko 959e375464 crypto: cavium/nitrox - don't cast parameter in bit operations
While in this particular case it would not be a (critical) issue,
the pattern itself is bad and error prone in case the location
of the parameter is changed.

Don't cast parameter to unsigned long pointer in the bit operations.
Instead copy to a local variable on stack of a proper type and use.

Fixes: cf718eaa8f ("crypto: cavium/nitrox - Enabled Mailbox support")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2022-03-03 10:49:21 +12:00
..
cpt crypto: cavium - Use kcalloc() instead of kzalloc() 2021-12-17 16:59:47 +11:00
nitrox crypto: cavium/nitrox - don't cast parameter in bit operations 2022-03-03 10:49:21 +12:00
zip crypto: cavium/zip - register algorithm only if hardware is present 2022-03-03 10:46:19 +12:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00