diff options
| author | Eric Biggers <ebiggers@kernel.org> | 2026-03-16 15:36:31 -0700 |
|---|---|---|
| committer | Martin K. Petersen <martin.petersen@oracle.com> | 2026-03-19 21:46:49 -0400 |
| commit | 48b2de8505437805116a3dc51d5afa09308c6659 (patch) | |
| tree | 6835833a5133ab8c647b9f32a99169da654157d8 /tools/lib/python/kdoc | |
| parent | 98eff361647ecba893aadce8808729672604a102 (diff) | |
scsi: lpfc: Use the crc32c() function
lpfc_cgn_calc_crc32(data, size, crc) is really just an open-coded version
of ~crc32c(bitrev32(crc), data, size). However, all callers pass crc ==
~0, so it can be simplified even further to just ~crc32c(~0, data, size).
Remove the crc argument and implement it that way.
While we're at it, also use proper types in the function prototype.
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
Link: https://patch.msgid.link/20260316223631.72361-1-ebiggers@kernel.org
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'tools/lib/python/kdoc')
0 files changed, 0 insertions, 0 deletions
